Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default UserForms to deactivate workbook

ThisWorkbook.Close

or:

ThisWorkbook.Close False 'if you don't want the Save Changes prompt

--

Vasant


"Patrick Marion" wrote in message
...
I have created a UserForm which gives the user the option
to either get into the worksheet/workbook or exit the
worksheet/workbook.

Would someone know the VBA code to attach to the Cancel
button so that it actually closes the workbook?

Thanks very much.




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
Deactivate Save As Alex.W Excel Discussion (Misc queries) 5 June 21st 07 11:58 AM
"Shared Workbook" seems to deactivate features like macros Steve Excel Discussion (Misc queries) 3 May 1st 07 05:11 PM
Shared Workbook UserForms Brendan Vassallo Excel Discussion (Misc queries) 2 October 19th 06 02:08 AM
Deactivate worksheet Cordobes Excel Discussion (Misc queries) 3 December 4th 05 10:16 AM
Deactivate web toolbar Anita Excel Discussion (Misc queries) 1 January 19th 05 12:46 AM


All times are GMT +1. The time now is 10:30 PM.

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

About Us

"It's about Microsoft Excel"