D
Dave Potter
I need to assign a macro to a commandbutton. I've recorded the macro
and tried the code below but I get a "Expected End Sub" error
Private Sub CommandButton1_Click()
Sub Openproductmix351()
'
' Openproductmix351 Macro
' Macro recorded 8/30/2003
'
'
Sheets("PRODUCT MIX 351").Visible = True
Sheets("351").Visible = True
End Sub
End Sub
What did I do wrong?
TIA,
David
and tried the code below but I get a "Expected End Sub" error
Private Sub CommandButton1_Click()
Sub Openproductmix351()
'
' Openproductmix351 Macro
' Macro recorded 8/30/2003
'
'
Sheets("PRODUCT MIX 351").Visible = True
Sheets("351").Visible = True
End Sub
End Sub
What did I do wrong?
TIA,
David