I have a workbook containing 46 worksheets that are identical in layout design.
On each of the 46 worksheets I have a Command Button
_________
Private Sub Hide_Zero_Rows_Click()
Rows("4:70").Hidden = False
Dim v As Range
For Each u In Range("u4:u70")
u.EntireRow.Hidden = u.Value = 123123123
Next u
End Sub
_______________________
What I need help with is to create one Command Button on a worksheet called "Launch"
then for this button when clicked to run the above command lines over all 46 worksheets
Worksheet names that the command needs to run on are:
A10, A20, A31, A32, A33, A50, B70, B10, B20, B30, B40, B60, C10, C20, C70, C80, C90, E10, E40, E50, E65, E70, E100, E100, E120, E130, E140, E150, E160, E170, E180, F10, F20, F30, F40, F50, G10, G30, G40, G50, G70, G80, H10, H20, H30, I10
Worskeet names that the command needs to ignore are:
OV, WO, VOD, ST, FA, VOI, ARK, LAUNCH
On each of the 46 worksheets I have a Command Button
_________
Private Sub Hide_Zero_Rows_Click()
Rows("4:70").Hidden = False
Dim v As Range
For Each u In Range("u4:u70")
u.EntireRow.Hidden = u.Value = 123123123
Next u
End Sub
_______________________
What I need help with is to create one Command Button on a worksheet called "Launch"
then for this button when clicked to run the above command lines over all 46 worksheets
Worksheet names that the command needs to run on are:
A10, A20, A31, A32, A33, A50, B70, B10, B20, B30, B40, B60, C10, C20, C70, C80, C90, E10, E40, E50, E65, E70, E100, E100, E120, E130, E140, E150, E160, E170, E180, F10, F20, F30, F40, F50, G10, G30, G40, G50, G70, G80, H10, H20, H30, I10
Worskeet names that the command needs to ignore are:
OV, WO, VOD, ST, FA, VOI, ARK, LAUNCH
Last edited: