Link to home
Start Free TrialLog in
Avatar of Inframap
InframapFlag for United States of America

asked on

Copy worksheet from one excel document to another

I have an excel template, that has a lot of VBA code in it and a lot of formulas etc...

It is used for data entry and displaying charts etc...

The users create a new workbook every day.

Now i have made some changes to the original workbook, changes are of formulas and some VBA code.

I want to copy the changes to existing workbooks without losing the data.  When i copy from the original the formulas change and point to the original.xlsm  

I dont want it to do that.  

example

Workbook 01042013.xlsm  Sheet 1
Workbook 01052013.xlsm  Sheet 1

Workbook Orignal.xlsm Sheet 1

I want to copy Sheet 1 from origitonal to 01042013  and 01052013 (sheet 1).  without losing the data entry but maintaining the newly calculated formulas from original .xlsm.

Does this make sense?

Thanks for the quick response.
Avatar of James Powell
James Powell
Flag of United States of America image

Sounds similar to an absolute reference issue when copying cells.
Could you go the other way? Copying the data sheets to the code book, and then save as the same name as the dated book and over writing it?
Dear inframap,

according to me it would be better to copy data from the worksheets 01042013 and 01052013 to the original workbook having the formula's, then saving the original workbook as 01042013 or 01052013.
This way the pointers would be on the OK workbook.

Kind regards

Eric
ASKER CERTIFIED SOLUTION
Avatar of Hectorjvegasg
Hectorjvegasg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial