If I try and put additional arguments into the cell select to freeze A:B & Y:Z and rows 1:2 I get a too many arguments error.
Again, I'm trying to freeze A:B, Y:Z, AND rows 1:2 simultaneously.....
It would be like Selecting cell C3 and AA3 and then freezing panes. Basically if a user were to scroll to the right past Y:Z both A:B and Y:Z would appear on the left side of the screen.
Thank you, was hoping VBA could force creating a "window"-layer on top of the spreadsheet.
Rob Henson
You could get round it with a manual tweak.
In the View tab select new Window and then Arrange All and choose Vertical and tick box for Windows of Active Workbook.
This will show the same sheet twice. Resize the left hand Window so that you can see only columns A & B and stretch the right hand window to fill the rest of the screen. Scroll the right hand window so that column Y is first column on sheet and then select AA3 and apply Freeze Panes.
In the View tab now select "View Side by Side" and "Synchronous Scrolling". The two windows will now scroll vertically in sync and to an extent horizontally; scrolling right on the Right hand pane won't scroll the left hand pane until after several scrolls.
ActiveWindow.FreezePanes = True