PC Review


Reply
Thread Tools Rate Thread

Absolute->relative link

 
 
sid.varno@gmail.com
Guest
Posts: n/a
 
      6th Jun 2007
Hello all,

here's my problem:
I created a vba code that copy from a template 2 sheets and paste them
into a new workbook.
But in the sheet #2, there's some formulas like this: ='Valeurs NCAP'!
F3-$C3 where "Valeurs NCAP" is sheet #1.
Once the sheet copied in the new workbook, the link became:
='[Original_workbook.xls]Valeurs NCAP'!F3-$C3

How can I break this absolute link and transform it in relative link
to only keep ='Valeurs NCAP'!F3-$C3 ?

thanks in advance,
alex

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      6th Jun 2007
One way is to save that receiving workbook and then do edit|links and change
source.

But I like to change all my formulas to text:
(with the recorder on???)
Select all the cells
edit|replace
what: =
with: $$$$$=
replace all

Then copy the cells and paste.

Then do the edit|replace in reverse:

Select all the cells
edit|replace
what: $$$$$=
with: =
replace all

(In both worksheets)

(E-Mail Removed) wrote:
>
> Hello all,
>
> here's my problem:
> I created a vba code that copy from a template 2 sheets and paste them
> into a new workbook.
> But in the sheet #2, there's some formulas like this: ='Valeurs NCAP'!
> F3-$C3 where "Valeurs NCAP" is sheet #1.
> Once the sheet copied in the new workbook, the link became:
> ='[Original_workbook.xls]Valeurs NCAP'!F3-$C3
>
> How can I break this absolute link and transform it in relative link
> to only keep ='Valeurs NCAP'!F3-$C3 ?
>
> thanks in advance,
> alex


--

Dave Peterson
 
Reply With Quote
 
sid.varno@gmail.com
Guest
Posts: n/a
 
      6th Jun 2007
Thanks! Once I have read your answer, I have thought that it was not
what I need.
But in fact, it's!

Now, it works fine.
Thx
alex

 
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
Excel 2002: changing link formula from absolute to relative Mr. Low Microsoft Excel Misc 3 29th Jul 2009 04:36 PM
Relative Link remembers absolute path?? booker@mgt Microsoft Excel Worksheet Functions 1 24th Feb 2009 11:36 PM
link keeps changing from absolute to relative asdf Microsoft Powerpoint 1 18th Apr 2008 09:55 AM
Absolute to Relative =?Utf-8?B?aGF3a2k=?= Microsoft Excel Programming 3 14th May 2007 08:11 PM
How to chage Absolute url to relative url ,and relative url to absolute url gqtang Microsoft C# .NET 1 13th Sep 2003 05:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:24 PM.