newclasshero
New Member
- Joined
- Sep 1, 2006
- Messages
- 46
I am having trouble with Assigning a Macro to a Command Button. Being new I think there may just be something simple that I am not doing. I have the Command Button in the appropriate spot on my sheets and I have the right macro created already but I can't seem to link the two. My Macro name is: VOUCHER_DriverExpenses.
The code is:
Sub CommandButton1_Click()
Call VOUCHER_DriverExpenses
End Sub
When I attach the above code to the control button and hit the button I get an error message.
I can run the macro just fine on it's own.
Any help would be appreciated.
The code is:
Sub CommandButton1_Click()
Call VOUCHER_DriverExpenses
End Sub
When I attach the above code to the control button and hit the button I get an error message.
I can run the macro just fine on it's own.
Any help would be appreciated.