Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Aside from the red "X" in the upper right corner, my boss wants a button on a
form that would close out of the worksheet (and the macro) altogether. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bill.
Simply insert a button and write a macro containing the following: sub btnclck() workbooks("abcd.xls").close unload me end sub Best Markus -----Original Message----- Aside from the red "X" in the upper right corner, my boss wants a button on a form that would close out of the worksheet (and the macro) altogether. . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don't need the unload me, there is no form to unload.
-- HTH RP (remove nothere from the email address if mailing direct) "Markus Scheible" wrote in message ... Hi Bill. Simply insert a button and write a macro containing the following: sub btnclck() workbooks("abcd.xls").close unload me end sub Best Markus -----Original Message----- Aside from the red "X" in the upper right corner, my boss wants a button on a form that would close out of the worksheet (and the macro) altogether. . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() This helps to close the worksheet...how about closing down Excel altogether...like another red "X" button. "Markus Scheible" wrote: Hi Bill. Simply insert a button and write a macro containing the following: sub btnclck() workbooks("abcd.xls").close unload me end sub Best Markus -----Original Message----- Aside from the red "X" in the upper right corner, my boss wants a button on a form that would close out of the worksheet (and the macro) altogether. . |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
application.quit
-- HTH RP (remove nothere from the email address if mailing direct) "Bill Brutzman" wrote in message ... This helps to close the worksheet...how about closing down Excel altogether...like another red "X" button. "Markus Scheible" wrote: Hi Bill. Simply insert a button and write a macro containing the following: sub btnclck() workbooks("abcd.xls").close unload me end sub Best Markus -----Original Message----- Aside from the red "X" in the upper right corner, my boss wants a button on a form that would close out of the worksheet (and the macro) altogether. . |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Application.Quit
closes excel. -- Regards, Tom Ogilvy "Bill Brutzman" wrote in message ... This helps to close the worksheet...how about closing down Excel altogether...like another red "X" button. "Markus Scheible" wrote: Hi Bill. Simply insert a button and write a macro containing the following: sub btnclck() workbooks("abcd.xls").close unload me end sub Best Markus -----Original Message----- Aside from the red "X" in the upper right corner, my boss wants a button on a form that would close out of the worksheet (and the macro) altogether. . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
opening a worksheet with a command button on a form | Excel Discussion (Misc queries) | |||
how to hide a form button in a worksheet | Excel Discussion (Misc queries) | |||
Creating a form on a worksheet - Can I make a button for "notes" | Excel Worksheet Functions | |||
HELP! - Closing form | Excel Programming | |||
HELP! - Closing form | Excel Programming |