I'm trying to freeze the top 4 rows in my Excel worksheet, but it's freezing 20 rows. I'm using the following VBA code to freeze the rows:
Range("1:4").Select
With ActiveWindow
.FreezePanes = True
End With
This is a screenshot, with added notiation show what I want, and what is actually happening. I scrolled a bit to show the freeze, and you can see that row 20 jumps to 36. It looks like there's a vertical freeze line between G and H, but it's not important (that could be the right-margin page break).
Any help is appreciated. Thanks.