Hi
I'd like to open up a range of columns but then hide certain columns within the same range within one operation. This is my current formula but it says mismatch:
Sub CloseAR1KS3()
Columns("X:GU").Hidden = False
Columns("C:D,Y:Z,AD:AO,AQ:AW,AY:BK,BM:BS,BU:BW,BY:CA,CC:CE,CG:CQ,CS:CU,CW:DC,DE:DK,DM:DO,DQ:DW,DY:GU").Hidden = True
Activate.EntireColumn.Hidden = True
End Sub
It's for learner grades which are entered three times a year - so I will eventually have three separate macros that will only show certain columns
Many thanks in advance
I'd like to open up a range of columns but then hide certain columns within the same range within one operation. This is my current formula but it says mismatch:
Sub CloseAR1KS3()
Columns("X:GU").Hidden = False
Columns("C:D,Y:Z,AD:AO,AQ:AW,AY:BK,BM:BS,BU:BW,BY:CA,CC:CE,CG:CQ,CS:CU,CW:DC,DE:DK,DM:DO,DQ:DW,DY:GU").Hidden = True
Activate.EntireColumn.Hidden = True
End Sub
It's for learner grades which are entered three times a year - so I will eventually have three separate macros that will only show certain columns
Many thanks in advance