LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Closing FIle with Command Bar Button Problem

Hmm .... good question ... don't know!

I'm almost sure for a while all was working fine if I added the parameter
Temporary:=True to commandbars.add(). But now that doesn't help.

At the moment I can't say why it fails with no other visible workbooks, but
the reason the OnTime fixes is because the close code is not being called
from the button.

(btw the issue is if there are/not other *visible* workbooks)

Regards,
Peter T

"JeffTO" wrote in message
...
Hi Peter

Works perfectly - thank you soooo much

And yes I do create the toolbar on open and delete on close

The actual live code is more complex than the sample I gave but the
problem was the same - so now that I have it working in the sample - I
am going to implement in my live code

Can you tell me why yours works and mine didnt? I am curious to know
what the difference is.

Thanks again - exteremely helpful

Jeff



 
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
a command button problem NA_AB[_2_] Excel Programming 1 January 9th 09 02:28 PM
Command Button Problem albertmb Excel Discussion (Misc queries) 6 June 22nd 08 01:06 PM
Closing an Excel Spreadsheet via command button [email protected] Excel Programming 1 February 15th 08 04:45 PM
Problem with command button name Jason[_9_] Excel Discussion (Misc queries) 10 October 19th 07 09:54 PM
Command Button Problem del Excel Programming 3 November 21st 03 05:13 PM


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