Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Resetting menu option on close...

Did you create a custom toolbar names "Sheet"?

--
Regards,
Tom Ogilvy


"alanleecohen" wrote in message
...
I use a Usrform to logon and to prevent unhiding sheets i use the

following code -
CommandBars("Sheet").Enabled = True.

However when I close the workbook the same code (that i've placed in the
ThisWOrkbook Workbook_Before_Closed event gives me the following error...

Error '91" Object variable or With block not set...

What am I missing...:)?



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
Adding a Close Workspace option when right-clicking Excel in taskb Handsome Prints Setting up and Configuration of Excel 0 September 4th 09 03:34 AM
close email option Malinda Excel Discussion (Misc queries) 2 August 24th 08 09:54 PM
Option in Excel to save a close a workbook inactive for 5 minutes Patricia Peterson Excel Discussion (Misc queries) 4 January 5th 06 05:00 PM
Resetting Excel commandbars on close event alanperu Excel Programming 4 January 6th 04 02:34 PM
Resetting Menu Bars in Visual Basic Dave Peterson[_3_] Excel Programming 0 October 8th 03 02:49 AM


All times are GMT +1. The time now is 11:31 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"