I am able to freeze the first 2 rows and first 4 columns using:
ActiveWindow.FreezePanes = False
With ActiveWindow
.SplitColumn = 4
.SplitRow = 2
End With
ActiveWindow.FreezePanes = True
However this only seems to work if I am in the sheet I want to freeze. But The Command button is in a different sheet, and I would rather not change it. Is there a way of specifying which sheet I want frozen? I would also be happy with freezing all sheets the same way if required.
Thanks