Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Formulas in Pathnames

This is what I am trying to do:

e.g. A cell has the following reference:
='G:\Finance\Tax\7-1 Plan\P1

I want to change it to:

='G:\Finance\Tax\10-1 Plan\P1

so that '7-1 Plan' or '10-1 Plan' is the reference cell in another workbook.

Thanks!

SB

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Formulas in Pathnames

There must be a reason you don't just edit it, but you don't say what. If
there are many instances, you could use the Find & replace option, Ctrl-H.

--
HTH

Bob Phillips

"SB1979" wrote in message
...
This is what I am trying to do:

e.g. A cell has the following reference:
='G:\Finance\Tax\7-1 Plan\P1

I want to change it to:

='G:\Finance\Tax\10-1 Plan\P1

so that '7-1 Plan' or '10-1 Plan' is the reference cell in another

workbook.

Thanks!

SB



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Formulas in Pathnames

You can't have a variable/dynamic link to a closed workbook. You would need
a macro that makes the adjustment by hardcoding the link.

--
Regards,
Tom Ogilvy

"SB1979" wrote in message
...
This is what I am trying to do:

e.g. A cell has the following reference:
='G:\Finance\Tax\7-1 Plan\P1

I want to change it to:

='G:\Finance\Tax\10-1 Plan\P1

so that '7-1 Plan' or '10-1 Plan' is the reference cell in another

workbook.

Thanks!

SB



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Formulas in Pathnames

Harlan Grove did write a UDF you might want to explore (to overcome the
limitation I spoke of)

http://tinyurl.com/9cgdc

code is toward the bottom of the thread.

--
Regards,
Tom Ogilvy

"SB1979" wrote in message
...
This is what I am trying to do:

e.g. A cell has the following reference:
='G:\Finance\Tax\7-1 Plan\P1

I want to change it to:

='G:\Finance\Tax\10-1 Plan\P1

so that '7-1 Plan' or '10-1 Plan' is the reference cell in another

workbook.

Thanks!

SB



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default Formulas in Pathnames

Don't know how you got the link there in the first place, but
You could create the hyperlink with HYPERLINK Worksheet Formula
without macros.

If you created the link within a macro, simply change what you create.

Don't know how many alternate locations you want to change it to,
Is this just a single cell or are you trying to change all occurrences within
a workbook.
---
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

"SB1979" wrote in message ...
This is what I am trying to do:

e.g. A cell has the following reference:
='G:\Finance\Tax\7-1 Plan\P1

I want to change it to:

='G:\Finance\Tax\10-1 Plan\P1

so that '7-1 Plan' or '10-1 Plan' is the reference cell in another workbook.

Thanks!

SB





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
Counting # of Formulas in a column with formulas and entered data Brand Excel Worksheet Functions 1 October 10th 09 01:01 PM
pathnames to linked workbooks change from mapped drive to UNC occasionally Larry Wrinn Links and Linking in Excel 0 March 3rd 08 03:14 PM
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
Macro Pathnames TMAC Excel Programming 1 September 16th 04 08:06 PM
Macro Pathnames? TMAC Excel Programming 3 September 16th 04 02:40 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"