A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Links and Linking
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Relative cell address



 
 
Thread Tools Display Modes
  #1  
Old May 31st, 2004, 02:05 PM
Saar Ben-Attar
external usenet poster
 
Posts: n/a
Default Relative cell address

I created an excel file which extracts information from several workbooks.
In one column, the address is relative (i.e.:
='[file_name1.xls]Spreadsheet_name'!$B$25), while in other columns the
address is absolute (i.e.: ='C:\Documents and Settings\SaarB\My
Documents\[file_name1.xls]Spreadsheet_name'!$B$25).

How can I turn all addresses to relative format? This is essential so that
when copying the files to another computer, the file identifies all other
excel files which it is linked to.

Any help would be most appreciated.

Saar


  #3  
Old May 31st, 2004, 04:27 PM
David McRitchie
external usenet poster
 
Posts: n/a
Default Relative cell address


if you assigned it in a macro -- but you don't show code
where you to assigned it.
.address(0) to eliminate $ signs for absolute.
--
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Saar Ben-Attar" wrote in message ...
I created an excel file which extracts information from several workbooks.
In one column, the address is relative (i.e.:
='[file_name1.xls]Spreadsheet_name'!$B$25), while in other columns the
address is absolute (i.e.: ='C:\Documents and Settings\SaarB\My
Documents\[file_name1.xls]Spreadsheet_name'!$B$25).

How can I turn all addresses to relative format? This is essential so that
when copying the files to another computer, the file identifies all other
excel files which it is linked to.

Any help would be most appreciated.

Saar




  #4  
Old June 1st, 2004, 07:44 AM
Bill Manville
external usenet poster
 
Posts: n/a
Default Relative cell address

Saar Ben-Attar wrote:
I created an excel file which extracts information from several workbooks.
In one column, the address is relative (i.e.:
='[file_name1.xls]Spreadsheet_name'!$B$25), while in other columns the
address is absolute (i.e.: ='C:\Documents and Settings\SaarB\My
Documents\[file_name1.xls]Spreadsheet_name'!$B$25).


The former format is used when the file concerned is open.
I think you may have links to 2 different file_name1.xls files in different
directories. Take a look in Edit / Links

Links to files in the same directory as the active workbook (or a
subdirectory or parent thereof) will always be treated as relative - if you
move all the files keeping the same relative position in the directory tree
then the links will continue to work. They will always appear in the second
format above when the source file is closed - but that doesn't mean they
won't be treated as relative.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.