Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Matt W
 
Posts: n/a
Default Copying a workbook with custom toolbar assigned to a macro

I created a workbook with a macro that copies data from one of the sheets up
to our server. I have this macro assigned to button on a custom toolbar.
When I copy the workbook and rename it, clicking the button on the custom
toolbar opens the original workbook and runs that macro from that one. I
don't like that. How do I get it to run the one in my new workbook?

-Matt
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Instead of customizing the toolbar manually, build the toolbar when the workbook
opens (have it point at the workbook that owns that code) and then have that
workbook clean up after itself when you close the workbook.

Here's the shell that I keep.
http://groups.google.co.uk/groups?th...5B41%40msn.com

Matt W wrote:

I created a workbook with a macro that copies data from one of the sheets up
to our server. I have this macro assigned to button on a custom toolbar.
When I copy the workbook and rename it, clicking the button on the custom
toolbar opens the original workbook and runs that macro from that one. I
don't like that. How do I get it to run the one in my new workbook?

-Matt


--

Dave Peterson
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
custom toolbar w/ macro Darien Excel Discussion (Misc queries) 3 February 2nd 05 09:16 PM
workbook macro help ditchy Excel Discussion (Misc queries) 2 December 27th 04 04:48 AM
I would like to delete a custom toolbar from the workspace. How? twiga Setting up and Configuration of Excel 1 December 23rd 04 05:55 PM
Stubborn toolbars in Excel 007 Excel Discussion (Misc queries) 9 December 11th 04 02:02 PM
copying text into a macro pagelocator Excel Worksheet Functions 1 November 24th 04 08:52 AM


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