Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Form Button Closing WorkSheet

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default VBA Form Button Closing WorkSheet

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VBA Form Button Closing WorkSheet

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Form Button Closing WorkSheet


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VBA Form Button Closing WorkSheet

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA Form Button Closing WorkSheet

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
opening a worksheet with a command button on a form gbpg Excel Discussion (Misc queries) 2 September 1st 07 05:40 AM
how to hide a form button in a worksheet angie ng Excel Discussion (Misc queries) 1 May 21st 07 01:08 PM
Creating a form on a worksheet - Can I make a button for "notes" [email protected] Excel Worksheet Functions 3 October 6th 05 04:50 PM
HELP! - Closing form Alex J Excel Programming 1 September 17th 04 01:37 AM
HELP! - Closing form Norman Jones Excel Programming 0 September 16th 04 03:21 AM


All times are GMT +1. The time now is 12:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"