Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]() Hi, I have a button assciated with a macro, but I want to make sure that the button isn't pressed by mistake. So I was thinking of having a checkbox, that when checked enables the command button, and when unchecked the button is disabled. How do I do that? -- Ruatha ------------------------------------------------------------------------ Ruatha's Profile: http://www.excelforum.com/member.php...o&userid=31083 View this thread: http://www.excelforum.com/showthread...hreadid=550770 |
#2
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
I think I'd just add a bit to the macro that is associated with the button.
Option explicit sub yoursubhere() dim resp as long resp = msgbox(Prompt:="Are you sure you want to do all this stuff", _ buttons:=vbyesno) if resp = vbno then exit sub end if 'rest of your code here Ruatha wrote: Hi, I have a button assciated with a macro, but I want to make sure that the button isn't pressed by mistake. So I was thinking of having a checkbox, that when checked enables the command button, and when unchecked the button is disabled. How do I do that? -- Ruatha ------------------------------------------------------------------------ Ruatha's Profile: http://www.excelforum.com/member.php...o&userid=31083 View this thread: http://www.excelforum.com/showthread...hreadid=550770 -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]() Thanx for the help, I'll do that! -- Ruatha ------------------------------------------------------------------------ Ruatha's Profile: http://www.excelforum.com/member.php...o&userid=31083 View this thread: http://www.excelforum.com/showthread...hreadid=550770 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ActiveX Controls vs Form Controls | Excel Discussion (Misc queries) | |||
Select All controls in a worksheet and delete them | Excel Discussion (Misc queries) | |||
After installing Office XP SP3, Excel ActiveX controls are moved a | Excel Discussion (Misc queries) | |||
Help on Excel controls | Excel Discussion (Misc queries) | |||
ActiveX Controls Display Issue? | Excel Discussion (Misc queries) |