Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Linking with text string

=Indirect("'C:\acc\[" &f1&".xls]Section A'!H4")

would be the way to do it, but Indirect doesn't work with a closed workbook.
So you would need to use code to build your string and hard code it in the
cell.

--
Regards,
Tom Ogilvy


"Nigel Chapman" wrote in message
news:1063794461.820256@dyfi...
I wonder if anyone can help me.
What I want to do is to be able to link to another file using a text

string
picked up from my current sheet.

In the example below, which doesnt work, cell F1 contains my file name,

and
the effect I want to achieve is :

='C:\acc\[data.xls]Section A'!H4

='C:\acc\[" &f1&".xls]Section A'!H4 where FI contains the string "data"

Is it possible to include strings in linking like this?

Any help greatly appreciated.

Thanks

Nigel




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
Text string to Numeric string Manikandan[_2_] Excel Discussion (Misc queries) 2 March 12th 09 08:55 AM
Nested formula to search a text string and return specific text Barbie Excel Worksheet Functions 10 February 21st 09 07:40 AM
Change 3 letter text string to a number string Pete Excel Discussion (Misc queries) 3 December 31st 07 07:47 PM
Splitting a text string into string and number mcambrose Excel Discussion (Misc queries) 4 February 21st 06 03:47 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 09:56 PM


All times are GMT +1. The time now is 10:33 PM.

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"