Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Copying and Migrating from one Spreadsheet to another

Posted on 2011-02-21
3
Medium Priority
?
311 Views
Last Modified: 2012-05-11
I have two fairly complex workbooks created in Excel 2010.   The function in one, I want in the other and thus I must move/copy or migrate 4 sheets in the source to the target.  What considerations should I take into account as I try to bring in the functionality?  For example, should I copy or move the functionality (i.e.create a copy of the source and paste it into the other workbook).  Will Macros automatically come over when I copy a sheet from source to target?  If I have to copy over the macros, do they have to be in the same "Module"?  Will Range Names copy over?   I'm looking to try to not create a huge problem as I try to bring over the functionality and want to understand any "gotchas".

Thank you,

B.
0
Comment
Question by:Bright01
  • 2
3 Comments
 
LVL 30

Expert Comment

by:SiddharthRout
ID: 34947825
1) If the code is stored in the sheet code area then you can copy the sheets directly and the code will be copied.

2) If the code is stored in a module then simply right click on the module of the source workbook and export it as a .BAS file which you can import in the new file. Please see snapshot.

Sid
Untitled.jpg
0
 

Author Comment

by:Bright01
ID: 34949346
Sid,  Thanks for the reply; what about range names and conditional formatting?  Does that come over with a copy and paste?  How about if I right click on the tab and make a copy or move function?

B.
0
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 2000 total points
ID: 34951612
How about if I right click on the tab and make a copy or move function?

I was exactly talking about that. Do not do a normal copy and paste.

Sid
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question