View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jac Tremblay Jac Tremblay is offline
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