Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default moving macros between spreadsheets

I want to move a macro from one spreadsheet to another.
What is the way to either move or copy a macro?

Thanks.
Alex
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default moving macros between spreadsheets

Alex,

Open both the source and destination workbooks. Then open the
VBA Editor. In the Project Explorer window (typically on the
left side of the screen), drag the module containing the code
from the source project to the destination project.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Alex" wrote in message
...
I want to move a macro from one spreadsheet to another.
What is the way to either move or copy a macro?

Thanks.
Alex



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default moving macros between spreadsheets

If you export the module from the VBA editor you can reimport into another
sheet or you can copy and paste it.
But if you have a common macro, why not put it in the personal workbook or
create a template with the macros in it that can be used for new workbooks.

Lots of options, so it does depend on how and to what extent you need to do
this?

Cheers
Nigel

"Alex" wrote in message
...
I want to move a macro from one spreadsheet to another.
What is the way to either move or copy a macro?

Thanks.
Alex





----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
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
Moving Macros Cheri Excel Worksheet Functions 2 February 5th 08 01:43 AM
Moving Excel Spreadsheets with hyperlinks in them Drew Excel Discussion (Misc queries) 0 August 2nd 06 09:12 PM
Moving Macros Dewayne Excel Discussion (Misc queries) 4 July 19th 06 11:17 PM
Moving between spreadsheets ecriez Excel Discussion (Misc queries) 3 February 17th 06 05:48 PM
Two spreadsheets linked - moving cells Adam Excel Discussion (Misc queries) 1 January 4th 05 12:59 PM


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