NBVC
Well-known Member
- Joined
- Aug 31, 2005
- Messages
- 5,828
Hi guys,
Another VBA question.....
I am trying to freeze panes at D2 with the following code:
It only seems to work properly if i have A1 active before running the macro. If I have other cells active, it behaves strangely.
Note: I do have some "hide column code" in the macro too, but whether I freeze panes before or after the hiding. It reacts strangely.
Any suggestions?
Another VBA question.....
I am trying to freeze panes at D2 with the following code:
Code:
' Freeze panes
Range("D2").Select
ActiveWindow.FreezePanes = True
It only seems to work properly if i have A1 active before running the macro. If I have other cells active, it behaves strangely.
Note: I do have some "hide column code" in the macro too, but whether I freeze panes before or after the hiding. It reacts strangely.
Any suggestions?