Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using VB copy contents of a macro to workbook

Hi Everyone,
I'm using VB to create a excel workbook(book1).I have another exce
workbook(book2) which contains a macro. Is it possible t
programmatically copy the contents of the macro from book2 to book1?
If yes, how should it be done?

Thanks,
Meen

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Using VB copy contents of a macro to workbook

Hi Meena,

See Chip Pearson's discussion on adding modules with code

http://www.cpearson.com/excel/vbe.htm


---
Regards,
Norman



"jminu_2k " wrote in message
...
Hi Everyone,
I'm using VB to create a excel workbook(book1).I have another excel
workbook(book2) which contains a macro. Is it possible to
programmatically copy the contents of the macro from book2 to book1?
If yes, how should it be done?

Thanks,
Meena


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using VB copy contents of a macro to workbook

Thanks a lot the the link,Norman.It was useful.

There is another requirement to prgrammatically add a user form to th
created excel workbook(book1).

Could you pls help in this regard

--
Message posted from http://www.ExcelForum.com

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
copy entire contents worksheet into new workbook, link but editabl ellyk Excel Discussion (Misc queries) 0 May 12th 10 08:49 PM
Macro to copy an image (or picture) from one workbook to a new sheetin another workbook Ruchir Excel Worksheet Functions 1 July 25th 08 07:29 AM
how do I copy the contents of a cell from one workbook to another Edith F Excel Worksheet Functions 1 May 19th 05 04:51 PM
Need a macro to copy a range in one workbook and paste into another workbook Paul Excel Programming 8 July 1st 04 07:42 AM
Copy cell contents into Macro code Bob Leonard Excel Programming 2 December 1st 03 07:29 PM


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