User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Excel Experts: INFO() function help Page [1]  
joe17669
All American
22728 Posts
user info
edit post

I'm trying to take advantage of the INFO("directory") function, and it's not behaving the way I want. It's supposed to point to the directory where the Excel file is.

For example, I create a new Workbook on my Desktop, type in =INFO("directory") and I get "C:\Documents and Settings\Joe\Desktop\"

If I close Excel, move the document to C:\, open the file, the INFO now shows "C:\Documents and Settings\Joe\My Documents\" even though it isn't there. Additionally, when I delete the cell and type in the INFO function again, it shows the same thing.

What the deal with this? If it would reflect the current directory at all times, this would save me a ton of time.

Thanks

4/18/2006 6:12:50 PM

qntmfred
retired
40726 Posts
user info
edit post

press F9

what are you using this for anyways? there may be a better solution

[Edited on April 18, 2006 at 6:23 PM. Reason : f9 is flaky though]

4/18/2006 6:14:30 PM

joe17669
All American
22728 Posts
user info
edit post

hmm, no dice on F9.

I tried all combinations, F9, Ctrl Alt F9, etc. The odd thing is that it defaulted to My Documents after I relocated it, even though it initially was on my Desktop.

I'm hyperlinking some pdf files into the document, but need to make sure that the links are relative, so the excel file (and accompanying pdfs) can exist at any location and still be active hyperlinks

edit: so im doing something like =HYPERLINK(INFO("directory") & "data\pdf1.pdf", "link name")

4/18/2006 6:23:46 PM

joe17669
All American
22728 Posts
user info
edit post

I found an alternative solution. The INFO("directory") just points to the current working directory, so it's a hit or miss as to why it doesn't always work. You'd have to change the working directory to get it to work correctly. The alternative solution is:

=LEFT(CELL("filename"),FIND("[",CELL("filename"))-1)

and it works like a charm

4/18/2006 6:53:38 PM

joe17669
All American
22728 Posts
user info
edit post

sonofabitch

Going to Insert > Hyperlink maintains the relative position of linked documents w.r.t the original document

all that bullshit code for NOTHING

excel 1
joe 0

4/19/2006 2:35:59 AM

 Message Boards » Tech Talk » Excel Experts: INFO() function help Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.