PC Review


Reply
Thread Tools Rate Thread

copying worksheets to a new workbook without formulae referencing original workbook

 
 
pjdeeb@gmail.com
Guest
Posts: n/a
 
      16th Oct 2006
I have a workbook I need to copy multiple worksheets from into a data
file with one existing worksheet. The copied worksheets contain
formulae referencing sheet one from the original so when they are in
the new workbook they reference sheet one of the original workbook
instead of sheet one of the new workbook like i want them to. Any
ideas on how to keep it from referencing the original?

Sheets(Array("Dot 1", "Dot 2", "Dot 3", "Dot 4", "Dot 5")).Copy
Before:=Workbooks _
("filename.dat").Sheets(2)

Original:
='Raw Data'!F29
New:
='[TVS-Wafer-Master.xls]Raw Data'!F29

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGFpZ2U=?=
Guest
Posts: n/a
 
      16th Oct 2006
Are you just talking about copying over as values, so there is no reference
to the original workbook/worksheet? If so, then once you select the new
workbook/worksheet, paste as values:

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False

....PC

"(E-Mail Removed)" wrote:

> I have a workbook I need to copy multiple worksheets from into a data
> file with one existing worksheet. The copied worksheets contain
> formulae referencing sheet one from the original so when they are in
> the new workbook they reference sheet one of the original workbook
> instead of sheet one of the new workbook like i want them to. Any
> ideas on how to keep it from referencing the original?
>
> Sheets(Array("Dot 1", "Dot 2", "Dot 3", "Dot 4", "Dot 5")).Copy
> Before:=Workbooks _
> ("filename.dat").Sheets(2)
>
> Original:
> ='Raw Data'!F29
> New:
> ='[TVS-Wafer-Master.xls]Raw Data'!F29
>
>

 
Reply With Quote
 
pjdeeb@gmail.com
Guest
Posts: n/a
 
      16th Oct 2006
No, I meant keeping the formulae intact without the reference. After
poking around some more I found a suggestion to update the link using
the ActiveWorkBook.ChangeLink function. That solved my problem. Thank
you.

Paige wrote:
> Are you just talking about copying over as values, so there is no reference
> to the original workbook/worksheet? If so, then once you select the new
> workbook/worksheet, paste as values:
>
> Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
> :=False, Transpose:=False
> Application.CutCopyMode = False
>
> ...PC


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying to a new workbook without formulas referencing original wk joesw Microsoft Excel Misc 1 26th Sep 2009 08:19 PM
Copying Spreadsheets without referencing other workbook. monahmat@gmail.com Microsoft Excel Worksheet Functions 8 26th Jul 2006 12:46 PM
Data referencing and auto fill across worksheets in one workbook.. =?Utf-8?B?Q29yZXkgSGVsbXM=?= Microsoft Excel Worksheet Functions 0 17th Jul 2006 03:44 PM
loop through a column on a workbook copying data on each row to another workbook, then copy data back to the original workbook burl_rfc Microsoft Excel Programming 1 1st Apr 2006 08:48 PM
Copying a chart and unlinking it from the original workbook =?Utf-8?B?cm1lbGxpc29u?= Microsoft Excel Charting 10 9th Nov 2005 08:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:33 AM.