View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
ShaneDevenshire ShaneDevenshire is offline
external usenet poster
 
Posts: 2,344
Default ~ ~ ~ Its All Relative???

Hi again,

You probably didn't get answers 12 months ago because people didn't
understand what you wanted back then and I still down understand.

Here's the best I can do:
First the standard command to reference a file using a variable in the
spreadsheet is to use the INDIRECT functions, the problem is that the file
must be open for this function to work. If the are this would be the form of
the formula:
B4 FileName [2-23-07.xls]
B5 Sheet Sheet1
B6 Cell $A$1

B8 =INDIRECT("'"&B4&B5&"'!"&B6)
Note there are singe quotes betweet the first pair of double quotes, there
is a singel quote before the ! in the second set of double quotes.

While the files are open the formula in B8 will return the results and the
entries in cells B4:B6 can be changes and the formula will adjust.

If this helps at all please check the Yes button.
--
Thanks,
Shane Devenshire


"23hitman" wrote:

I would like to accomplish this same task as posted 11 months ago (end files
on a CD and links to each file) . (Using Word & Excel 2007)

I know the answer is to create "relative" file paths
however..............HOW do I create relative path names? When they are on
the CD in a folder the main sheet needs to link to each file.

Word or Excel to accomplish this?


Thank you

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~


David Biddulph" wrote:

Is your hyperlink to a relative address, or an absolute address? If it is
a relative address, then you should be OK if all your files are being copied
onto the same CD with the same relative folder structure as you've got where
you're creating them.
--
David Biddulph

"Jattas" wrote in message
...
I have to archive media clippings for my company. I have a list with
hyperlinks to the source files (JPG's, PDF's, ZIP's etc.)

I have different folders for all the source files (according to date) and
want the end-user to have access to those files with a simple click in
Excel.

The end-product will be on a CD. As I don't know what their CD drive
letter
will be, how can I be certain that the link will guide them to the
corresponding file?