Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Copy Macros and VB code from one workbook to another

I have copied a production workbook to a test environment
and created some macros and vb code to go along with the
workbook. From the time I copied the book to test a lot of
changes have taken place to the production book. How do I
copy or move the macros and vb code from the test version
to the production version?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Copy Macros and VB code from one workbook to another

Dawn,

For help on doing this in VBA, take a look he
http://www.cpearson.com/excel/vbe.htm

Manually, you can open the VBA editor and export each
of the modules from the "test" version and import them
to the "production" version.
Easier way is to open both workbooks and from the VBA
editor and just drag and drop modules and userforms from
one to the other.

John

"Dawn" wrote in message
...
I have copied a production workbook to a test environment
and created some macros and vb code to go along with the
workbook. From the time I copied the book to test a lot of
changes have taken place to the production book. How do I
copy or move the macros and vb code from the test version
to the production version?




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
Help...Code to copy sheet from closed workbook [email protected] Excel Discussion (Misc queries) 1 March 28th 07 08:52 PM
copy and paste using code from workbook to workbook bigdaddy3 Excel Discussion (Misc queries) 2 September 14th 05 11:06 AM
How to copy a workbook so the buttons run the macros? - Excel Discussion (Misc queries) 4 May 15th 05 11:24 PM
Copy worksheet, code and all, into workbook? Ed[_9_] Excel Programming 2 September 22nd 03 03:11 PM
Copy VB code to other workbook? john Dijkman Excel Programming 3 July 21st 03 01:02 AM


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