Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default Cell Value to look up a file name

I am not sure if this is possible but here is what I am trying to do.
I have word documents in a directory named corresponding to each
state. I want to be able to have the user in an excel document input
the State name and when the click a link it opens the corresponding
word document associated with the State that they put in. Again I
don't know if this is possible.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Cell Value to look up a file name

Assuming you have your sub-directories named after states (two letter
abbreviaiton) in the C:\States direcory and the document name is
'stateabbreviation.doc' like CA.doc, MD.doc etc

Then suppose the user enter state abbreviation in A1, you can have this in B1
=HYPERLINK("C:\States\"&A1&"\"&A1&".doc","Enter the State code in A1 and
click here")

"newguy" wrote:

I am not sure if this is possible but here is what I am trying to do.
I have word documents in a directory named corresponding to each
state. I want to be able to have the user in an excel document input
the State name and when the click a link it opens the corresponding
word document associated with the State that they put in. Again I
don't know if this is possible.

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default Cell Value to look up a file name

That works perfect thank you. I had one more question and do you know
if there is a way to strip of leading and trailing blank spaces. My
concern is that if someone was to put a space then the state
abbreviation or a space after the abbreviation it breaks the link.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Cell Value to look up a file name

=TRIM(A1) to trim spaces in A1. Do test it out to see how it works...

"newguy" wrote:

That works perfect thank you. I had one more question and do you know
if there is a way to strip of leading and trailing blank spaces. My
concern is that if someone was to put a space then the state
abbreviation or a space after the abbreviation it breaks the link.

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
Linking to another file using file reference typed cell Steven Excel Worksheet Functions 3 April 5th 08 03:15 AM
Autoname a save as file from a cell in a read only file g4rod Excel Discussion (Misc queries) 2 October 6th 06 01:16 PM
Is it possible to link cell formatting in Excel from file to file KimW Excel Discussion (Misc queries) 4 August 17th 06 07:03 PM
when inserting a file name in a cell how do you remove file type mikecarpenter21 Excel Worksheet Functions 1 August 3rd 06 05:42 PM
Saving worksheet in new file with date AND cell value as file name michaelberrier Excel Discussion (Misc queries) 4 May 26th 06 08:05 PM


All times are GMT +1. The time now is 07:24 PM.

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"