marcus.brown
Board Regular
- Joined
- Jun 23, 2008
- Messages
- 61
Hi,
I am trying to hide columns using a macro, but it doesn't seem to be working properly.
The code I'm using is as follows.
Columns("JLT:MFS").Select
Range("JLT2").Activate
Selection.EntireColumn.Hidden = True
I'm not sure how relevant it is, but some cells are merged - JLT1:MOM1 is merged to 1 cell. When I run the code, the macro hides all the columns from JLT to MOM (inclusive).
I have more columns like the above which need to be hidden, and I encounter the same problem.
Please can you help.
Thanks
I am trying to hide columns using a macro, but it doesn't seem to be working properly.
The code I'm using is as follows.
Columns("JLT:MFS").Select
Range("JLT2").Activate
Selection.EntireColumn.Hidden = True
I'm not sure how relevant it is, but some cells are merged - JLT1:MOM1 is merged to 1 cell. When I run the code, the macro hides all the columns from JLT to MOM (inclusive).
I have more columns like the above which need to be hidden, and I encounter the same problem.
Please can you help.
Thanks