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  

variable path



 
 
Thread Tools Display Modes
  #1  
Old June 10th, 2009, 05:54 PM posted to microsoft.public.excel.links
Gerardo
external usenet poster
 
Posts: 15
Default variable path

I'm trying to vary the source of some information, How can I use a drop down
list for example to select a new source for info in a cell?

example:
Q:\Data\File001.xls
Q:\Data\File002.xls
Formula in A1 Cell = 'Qata\[File001.xls]Sheet1'!H1/100
Then switch to File002

Thank you, regards
  #2  
Old June 12th, 2009, 05:38 AM posted to microsoft.public.excel.links
macropod[_2_]
external usenet poster
 
Posts: 2,402
Default variable path

Hi Gerardo,

Check out the INDIRECT function. Do note, though, that this function will return error values if the source workbooks are not open.
The alternative is to use a macro to replace the filenames in specified cells.

--
Cheers
macropod
[Microsoft MVP - Word]


"Gerardo" wrote in message ...
I'm trying to vary the source of some information, How can I use a drop down
list for example to select a new source for info in a cell?

example:
Q:\Data\File001.xls
Q:\Data\File002.xls
Formula in A1 Cell = 'Qata\[File001.xls]Sheet1'!H1/100
Then switch to File002

Thank you, regards


 




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 09:15 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.