PDA

View Full Version : Solved: Scroll columns and rows



Rejje
05-27-2011, 06:06 AM
Hi!

A worksheet's window is locked on column B. Rows in this worksheet may be hidden according to code.

Now to the poblem: Normally one could add Range("A1").Select to a macro in order to make top/left of the window to be shown. Now this doesn't work as cell A1 always can be seen.

I need a bit of code that scrolls columns to top and rows to extreme left.

Anyone able?

frank_m
05-27-2011, 08:37 PM
To scroll to the upper left visible cell without selecting it:
With ActiveWindow
.ScrollRow = 1
.ScrollColumn = 1
End With

Rejje
05-27-2011, 10:35 PM
Many thanks!