Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Worksheet copy problem

Hi everyone
When I copy a whole worksheet in another workbook, if the original worksheet has formulas (like lookups) that refer to some range another of its worksheets, the new workbook formulas use the original range in the original workbook. Is it possible to copy the sheet without the link or if not, to unlink the formulas so that they refer to the same range in the target workbook
I know that I can edit the formula by looking for the apostrophe characters (') and closed bracket (]) by removing some stuff in between, but I wander if there is not an easier way
The formula I get is
"=VLOOKUP(RC[-1],'[Original workbook.xls]Table'!R1C1:R6C2,2,FALSE)
when I want
"=VLOOKUP(RC[-1],Table!R1C1:R6C2,2,FALSE)
o
"=VLOOKUP(A1,Table!$A$1:$B$6,2,FALSE)
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Worksheet copy problem

Edit|links|change source and point at the new workbook itself.

or convert the formulas to text first
edit|replace
=
with
$$$$$

Then copy|paste

then convert them back to formulas (in both spots)

edit|replace
$$$$$
with
=



Jac Tremblay wrote:

Hi everyone,
When I copy a whole worksheet in another workbook, if the original worksheet has formulas (like lookups) that refer to some range another of its worksheets, the new workbook formulas use the original range in the original workbook. Is it possible to copy the sheet without the link or if not, to unlink the formulas so that they refer to the same range in the target workbook?
I know that I can edit the formula by looking for the apostrophe characters (') and closed bracket (]) by removing some stuff in between, but I wander if there is not an easier way.
The formula I get is:
"=VLOOKUP(RC[-1],'[Original workbook.xls]Table'!R1C1:R6C2,2,FALSE)"
when I want:
"=VLOOKUP(RC[-1],Table!R1C1:R6C2,2,FALSE)"
or
"=VLOOKUP(A1,Table!$A$1:$B$6,2,FALSE)"
Thanks.


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Worksheet copy problem

try workking with named ranges?

keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


Dave Peterson wrote:

Edit|links|change source and point at the new workbook itself.

or convert the formulas to text first
edit|replace
=
with
$$$$$

Then copy|paste

then convert them back to formulas (in both spots)

edit|replace
$$$$$
with
=



Jac Tremblay wrote:

Hi everyone,
When I copy a whole worksheet in another workbook, if the original
worksheet has formulas (like lookups) that refer to some range
another of its worksheets, the new workbook formulas use the original
range in the original workbook. Is it possible to copy the sheet
without the link or if not, to unlink the formulas so that they refer
to the same range in the target workbook? I know that I can edit the
formula by looking for the apostrophe characters (') and closed
bracket (]) by removing some stuff in between, but I wander if there
is not an easier way. The formula I get is:
"=VLOOKUP(RC[-1],'[Original workbook.xls]Table'!R1C1:R6C2,2,FALSE)"
when I want:
"=VLOOKUP(RC[-1],Table!R1C1:R6C2,2,FALSE)"
or
"=VLOOKUP(A1,Table!$A$1:$B$6,2,FALSE)"
Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Worksheet copy problem

Hi Dave
I tried both ways and they work fine
Thanks a lot.
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
Excel 2007 Copy Worksheet Problem webermis Excel Discussion (Misc queries) 0 February 23rd 10 04:38 PM
Worksheet copy problem - local names Jack Sheet Excel Discussion (Misc queries) 2 December 2nd 04 10:02 AM
Code to copy range vs Copy Entire Worksheet - can't figure it out Mike Taylor Excel Programming 1 April 15th 04 08:34 PM
worksheet copy problem dan Excel Programming 1 January 24th 04 02:26 AM
worksheet copy problem jim apostolidis Excel Programming 1 October 16th 03 01:38 PM


All times are GMT +1. The time now is 02:47 AM.

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"