Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
micmacuk
 
Posts: n/a
Default excel loads another workbook to run the macro...


Hello there,

In my workbook, I have created a custom toolbar with buttons that
activates macros.

After I have saved the master file under a back-up name, I close it.

Then I want to re-open the master file, at that moment if I click on a
button on the custom toolbar, excel loads the file with the back-up
name in order to access the macro.

Do you know any way around this ?

Cheers
Francois


--
micmacuk
------------------------------------------------------------------------
micmacuk's Profile: http://www.excelforum.com/member.php...o&userid=33253
View this thread: http://www.excelforum.com/showthread...hreadid=536118

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default excel loads another workbook to run the macro...

Your life will become much simpler if you include code to create the toolbar
when the workbook is opened and include code to destroy the toolbar when the
workbook is closed.

For additions to the worksheet menu bar, I really like the way John Walkenbach
does it in his menumaker workbook:
http://j-walk.com/ss/excel/tips/tip53.htm

Here's how I do it when I want a toolbar:
http://www.contextures.com/xlToolbar02.html
(from Debra Dalgleish's site)

micmacuk wrote:

Hello there,

In my workbook, I have created a custom toolbar with buttons that
activates macros.

After I have saved the master file under a back-up name, I close it.

Then I want to re-open the master file, at that moment if I click on a
button on the custom toolbar, excel loads the file with the back-up
name in order to access the macro.

Do you know any way around this ?

Cheers
Francois

--
micmacuk
------------------------------------------------------------------------
micmacuk's Profile: http://www.excelforum.com/member.php...o&userid=33253
View this thread: http://www.excelforum.com/showthread...hreadid=536118


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
micmacuk
 
Posts: n/a
Default excel loads another workbook to run the macro...


Thanks Dave,

I understand....
What a task ahead of me as the tool bar I have done has several menu
and sub menu + pictures shapes as arrow to navigate dates...etc....

I had already wrote a macro to load the toolbar when opening that file
and unloade it when closing in the private workbook thingy....

Thought it would have been enough.

Anyway...thanks again for your tip.

Francois


--
micmacuk
------------------------------------------------------------------------
micmacuk's Profile: http://www.excelforum.com/member.php...o&userid=33253
View this thread: http://www.excelforum.com/showthread...hreadid=536118

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
macro save a workbook whilst increasing file no shrek Excel Worksheet Functions 0 November 10th 05 02:40 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Issuing macro in workbook from separate workbook Nigel Excel Discussion (Misc queries) 1 May 16th 05 05:46 PM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Stubborn toolbars in Excel 007 Excel Discussion (Misc queries) 9 December 11th 04 02:02 PM


All times are GMT +1. The time now is 09:42 AM.

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"