Rayne
asked on
excel Vba Scroll To top
Hello To all Gurus,
Is there a way to do this in VBA? I am dealing with a lot of user edited excel files
I want to loop through all excel files in a folder.
Go through each sheet in each file and set the vertical scroll bar to look at the first row.
Then save the file
Go to next file in folder
How to do this l?
Thanks
Is there a way to do this in VBA? I am dealing with a lot of user edited excel files
I want to loop through all excel files in a folder.
Go through each sheet in each file and set the vertical scroll bar to look at the first row.
Then save the file
Go to next file in folder
How to do this l?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect Kevin, that's perfect :)
thank you
thank you
ASKER
Hello Kevin, here is another one if you are interested
https://www.experts-exchange.com/questions/28163247/vba-activate.html
https://www.experts-exchange.com/questions/28163247/vba-activate.html
ActiveWindow.ScrollRow = 20
ActiveWindow.ScrollRow = ActiveCell.Row
ActiveWindow.ScrollColumn = 10
ActiveWindow.ScrollColumn = ActiveCell.Column
ActiveWindow.ScrollColumn = Range("X10").Column
Note that since the ScrollRow and ScrollColumn belong to the ActiveWindow property, there is no way to scroll a worksheet unless it is active.
Kevin