Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Private Sub CommandButton1_Click() Call DateStamp End Sub Mike "Roger on Excel" wrote: [Excel 2003] I use macros in a worksheet - for example: Sub DateStamp() Range("b14") = Date & " " & Time 'Date And Time End Sub I access the macro with a command button in the spreadsheet. I would now like to access the same code using a command button on a Userform. I guess I could repeat the same code in the command button on the userform, but I would rather not duplicate the code. Is there a way to do this? Many thanks, Roger |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
print command from command button in userform causes double chart | Excel Programming | |||
How to activate command button on form by macro | Excel Programming | |||
Calling a subroutine with a command button | Excel Programming | |||
button to activate userform | Excel Programming | |||
using 'enter' on a textbox to activate a command button? | Excel Programming |