ActiveWindow.ScrollRow = 76 (Do I need this?)

asmith5rgv

Board Regular
Joined
Apr 6, 2006
Messages
69
Good Morning,
I have created macros in which I am getting good enough to edit and modify them using the VBA editor. Many times there is this code created by the macro:
ActiveWindow.ScrollRow = 76
ActiveWindow.ScrollRow = 54
ActiveWindow.ScrollRow = 44
ActiveWindow.ScrollRow = 33
ActiveWindow.ScrollRow = 12
ActiveWindow.ScrollRow = 1

sometimes it might go for a page or more incrementing the number. Can I take this out? It just makes for terrible reading!

Thanks,

Al
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Al

Yes you can take it out.

When you record a macro everything you do, including scrolling, is recorded.
 
Upvote 0
Hi,

YES! you can
these are only navigational commands
they do no operations at all

SELECT can be avoided to
all this slows down the process considerably

kind regards,
Erik
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,204
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top