Max Alejandro Molina
Member
Hello Everyone,
I would like to do exactly what the title says, the issue is that i have already done so for each worksheet individually and I need to do this for the whole workbook as the structure is similar.
The question is How can I merge the following into a simple Sub??
Sub AmigosFood_Hide()
ActiveSheet.Range("A:A,F:F,H:I,L:M,W:W,Y:Y,AE:AG,AO:AP").EntireColumn.Hidden = True
End Sub
Sub BonAppetit_Hide()
ActiveSheet.Range("A:A,F:F,H:V,AB:AB,AH:AH,AN:AP,AX:AX").EntireColumn.Hidden = True
End Sub
Sub Bremner_Hide()
ActiveSheet.Range("A:A,F:F,H:I,T:T,Z:Z,AF:AH,AP:AR").EntireColumn.Hidden = True
End Sub
*Please note that those Subs are for worksheets separately so the worksheets' names are: AMIGOS FOOD, BON APPETIT, BREMNER,
I would like to do exactly what the title says, the issue is that i have already done so for each worksheet individually and I need to do this for the whole workbook as the structure is similar.
The question is How can I merge the following into a simple Sub??
Sub AmigosFood_Hide()
ActiveSheet.Range("A:A,F:F,H:I,L:M,W:W,Y:Y,AE:AG,AO:AP").EntireColumn.Hidden = True
End Sub
Sub BonAppetit_Hide()
ActiveSheet.Range("A:A,F:F,H:V,AB:AB,AH:AH,AN:AP,AX:AX").EntireColumn.Hidden = True
End Sub
Sub Bremner_Hide()
ActiveSheet.Range("A:A,F:F,H:I,T:T,Z:Z,AF:AH,AP:AR").EntireColumn.Hidden = True
End Sub
*Please note that those Subs are for worksheets separately so the worksheets' names are: AMIGOS FOOD, BON APPETIT, BREMNER,