Question : VBA to scroll to the top of a freeze pane

I have a sheet with a pivot table on it and have the panes frozen right below Data items row.  I would like the code to be able to scroll back to the top of the frozen row after my refresh macro executes, because now it is just left where the last user scrolled down to.

Answer : VBA to scroll to the top of a freeze pane

Assuming the worksheet is active:

   ActiveWindow.ScrollRow = 1
   ActiveWindow.ScrollColumn = 1

Kevin
Random Solutions  
 
programming4us programming4us