LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Sharing and Changing a Macro in Multiple Workbooks

Dave:

The toolbar shows up correctly, now. I also added an auto_close routine
that closes the toolbar and unloads the add-in when the template file closes.


Thank you very much for your help.
--
Barry Carroll

(Cleverly disguised as a responsible adult)
---------
PSC Scanning, Inc. assumes no responsibility whatsoever for any statements
made by me. I''m entirely on my own.


"Dave Peterson" wrote:

What's the name of the routine that builds the toolbar? Are you using
Auto_Open?

If yes, then you'll have to run that Auto_Open procedure in code. (I should
have mentioned it earlier--but I didn't think of it.)

The last portion of your code could look like:

If myWkbk Is Nothing Then
MsgBox "Opening the toolbar"
'open it
Set myWkbk = Workbooks.Open(Filename:=AddInFullName)
myWkbk.RunAutoMacros which:=xlAutoOpen
End If

====
As an aside: If the code that creates the toolbar were in the workbook_open
event, then you would have been ok.

<<snip
--

Dave Peterson



 
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
Sharing workbooks Smudge Excel Discussion (Misc queries) 1 December 1st 06 03:38 PM
Sharing workbooks Jo Davis Excel Discussion (Misc queries) 2 September 11th 06 03:54 PM
macro: copy multiple workbooks to multiple tabs in single book Michael Excel Programming 0 July 14th 06 04:53 PM
Changing source on multiple workbooks charlilot Links and Linking in Excel 1 January 26th 06 09:08 PM
Sharing workbooks Eric[_14_] Excel Programming 1 December 4th 03 07:54 PM


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