Hi can anyone help?
I am using a userform and have added a Command button within the form and I want it to call CommandButton1 on Sheet2 that in turn calls other CommandButtons for other sheets.
Is this possible?
I get a compile error saying 'Sub or function not defined' and highlights 'Call CommandButton1_Click'
ie
any help would be apprieciated
Regards
pwill
I am using a userform and have added a Command button within the form and I want it to call CommandButton1 on Sheet2 that in turn calls other CommandButtons for other sheets.
Is this possible?
I get a compile error saying 'Sub or function not defined' and highlights 'Call CommandButton1_Click'
ie
Code:
Private Sub btnUpdt_Click()
Dim dts As Long
Dim i As Long
dts = Me.tbAdddts
For i = 1 To tbAdddts
Call CommandButton1_Click
Next
any help would be apprieciated
Regards
pwill
Last edited: