LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Copy module from one file to another

Hi-

I have a macro file that opens along with another file and the macro is
run against the file. I copy a bunch of buttons from the macro file to
the new file and currently have all of the code in the macro file as a
place to store it. The problem I am having is the buttons reference
the modules in the macro file. So when the macro file is closed and
you press the buttons in the new file that is created from the
macro....it errors out.

How can I get the code that is stored in this macro file into modules
in the new file that is created so that I don't have to keep the macro
file open in order to use the buttons?

TIA,
Chris

 
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
Copy vb module in all excel sheets sohraaz Excel Discussion (Misc queries) 1 July 21st 07 03:16 PM
Module not file when open the excel file Thomas Excel Discussion (Misc queries) 1 July 14th 07 02:48 PM
How do I copy a new module to 200 workbooks with a macro? Patrick Young Excel Programming 1 September 3rd 05 04:34 PM
Copy a code module quartz[_2_] Excel Programming 2 April 11th 05 08:01 PM
Is it possible to copy a code module using VBA? quartz Excel Programming 2 April 15th 04 09:49 PM


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