Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default copy values from one workbook to another

Hi,

I have one workbook containing hundreds of sheets and a huge amount of
formulas.
Is there a way to create a a macro that copy all the values, (no formulas,
no formatting), to a new workbook which are identical to the first one?
This is necessary as I sometimes need to "update" my workbook, whitout
losing all of my manually printed values.
Also there are links to this workbook to other workbooks, therefore it needs
to be renamed to the same name as the old woorkbooks name, to get the links
working as before.

Regards,

Thomas



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy values from one workbook to another

I think that you are into a big job proceeding as you suggest. You wish
to retain the links to other workbooks, right ?

Why don't you just copy the existing workbook under another name ?

If you wish, all you need to do then is record a macro which deletes
rows/columns you don't want and perhaps does Edit/Copy/PasteSpecial
Values to replace formulas with values.

To have this work on all worksheets in the book you can make a loop
like :-

'------------------------------------------------------
Sub reformat_sheets()
For Each ws In Worksheets
ws.Activate
Macro1 ' or whatever your code sub is called
Next
End Sub
'----------------------------------------------


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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy values from one workbook to another

Hi,!

I sometimes have to repair some of the formulas of the woorkbook, and
then send the repaired workbook to another user. He/She has already put
in a bunch of values in all the sheets of the broken workbook

If the user choose to replace the old file to the new, repaired file,
all the values will dissapear. I donīt want that to happen.
So therefore, I need a code that just copy the values from the old,
broken file, to the new one that has no values, just formulas. The
files are identic to eachother, exept for the repaired formulas.
If itīs necessary, I can give you the exact rows and columns, where I
need to copy from.
If itīs possible, Iīd like this to happen at the same time as the
woorkbook is opened for the first time.
And yes, I also need to retain the links.

Is it possible?

//Thomas


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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy values from one workbook to another

Record a macro. come back with problems (in a new message).


---
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
VBA Copy values only onto new workbook Mara Excel Discussion (Misc queries) 1 May 5th 10 02:43 AM
Copy values of worksheet a to workbook b Nev Excel Discussion (Misc queries) 5 April 8th 09 09:35 PM
Macro to copy values to Workbook KCG Excel Discussion (Misc queries) 10 November 6th 07 10:52 PM
how to copy only values and formats of worksheets to new workbook rvd Excel Worksheet Functions 3 January 31st 07 12:43 PM
How do I copy text and values from the same workbook onto a different sheet?? kepcopower Excel Discussion (Misc queries) 2 March 23rd 06 09:10 PM


All times are GMT +1. The time now is 06:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Đ2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"