Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I have button on a form. There's event code in the button click event. But when certain conditions are met, I would like to call the button's click event code. I know that I can take the code out of the click event and just write a separate routine and have the click event call that routine, so that I can also call the same routine when my conditions are met. But it's not my code, so, I would like to just call the click event if possible. Any suggestions? Thanks. Ben -- |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ben,
If the button code's declaration is changed to Public, then: Call UserForm1.CommandButton1_Click --- Regards, Norman "Ben" wrote in message ... Hi all, I have button on a form. There's event code in the button click event. But when certain conditions are met, I would like to call the button's click event code. I know that I can take the code out of the click event and just write a separate routine and have the click event call that routine, so that I can also call the same routine when my conditions are met. But it's not my code, so, I would like to just call the click event if possible. Any suggestions? Thanks. Ben -- |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks so much Norman.
Ben -- "Norman Jones" wrote: Hi Ben, If the button code's declaration is changed to Public, then: Call UserForm1.CommandButton1_Click --- Regards, Norman "Ben" wrote in message ... Hi all, I have button on a form. There's event code in the button click event. But when certain conditions are met, I would like to call the button's click event code. I know that I can take the code out of the click event and just write a separate routine and have the click event call that routine, so that I can also call the same routine when my conditions are met. But it's not my code, so, I would like to just call the click event if possible. Any suggestions? Thanks. Ben -- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Open event to call procedure ONLY on Monday | Excel Programming | |||
Where else to look for procedure call | Excel Programming | |||
OnTime event not firing in Workbook_Open event procedure | Excel Programming | |||
call procedure | Excel Programming | |||
procedure won't call | Excel Programming |