News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

Use VBA code to scroll an Excel worksheet's pane to a particular column

Started by nandagopal, Nov 03, 2008, 07:59 PM

Previous topic - Next topic

nandagopal

Find the pane that you want to scroll. In this example, it's the second of two panes. Set its ScrollColumn property to the column number that you want scrolled to the left edge of the pane.


Sub ScrollToQuizzes()
    ActiveWindow.Panes(ActiveWindow.Panes.Count).ScrollColumn _
        = 41
End Sub