Tidying up VBA

Colleen45

Active Member
Joined
Jul 22, 2007
Messages
495
How would this VBA be tidied up?

ActiveWindow.ScrollRow = 960
ActiveWindow.ScrollRow = 957
ActiveWindow.ScrollRow = 955
ActiveWindow.ScrollRow = 950
ActiveWindow.ScrollRow = 946
ActiveWindow.ScrollRow = 942
ActiveWindow.ScrollRow = 939
ActiveWindow.ScrollRow = 933
ActiveWindow.ScrollRow = 928
ActiveWindow.ScrollRow = 921
ActiveWindow.ScrollRow = 915
ActiveWindow.ScrollRow = 909
ActiveWindow.ScrollRow = 904
ActiveWindow.ScrollRow = 897
ActiveWindow.ScrollRow = 891
ActiveWindow.ScrollRow = 884
ActiveWindow.ScrollRow = 877
ActiveWindow.ScrollRow = 871
ActiveWindow.ScrollRow = 863
ActiveWindow.ScrollRow = 858
ActiveWindow.ScrollRow = 854
ActiveWindow.ScrollRow = 846
ActiveWindow.ScrollRow = 841
ActiveWindow.ScrollRow = 834
ActiveWindow.ScrollRow = 829
ActiveWindow.ScrollRow = 821
ActiveWindow.ScrollRow = 809
ActiveWindow.ScrollRow = 793
ActiveWindow.ScrollRow = 786
ActiveWindow.ScrollRow = 777
ActiveWindow.ScrollRow = 768
ActiveWindow.ScrollRow = 758
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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