Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm cleaning up and extending some excel VBA macros (written and currently running in Excel 2003), and I have a question about how far I can go in cleaning up without modifying the output.

There are sevral ActiveWindow.Scroll or similar entries in the macro. So far as I understand these only move the spreadsheet within the viewable window. Is this correct?

Just to expand and confirm: Removing Scroll entries should in no way affect the selected cell, row, or column the macro will be working upon.

share|improve this question
up vote 2 down vote accepted

That is correct. These are typically just a side effect of recording a macro. You should be able to remove them without affecting your macro.

share|improve this answer
Thank you for the confirmation. In my experience I've not found a case where they've done anything meaningful, but it's good to have additional confirmation they indeed do not affect data processing portions of the macro. – music2myear Apr 7 '11 at 20:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.