Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Hyperlink to document

I want to create a hyperlink in my excel file that points to a specific
document. I same the master excel file to a new folder for every project I
do. The document I hyperlink to also is new for every project. How do I
automaticaly change the hyperlink to reflect the new folder / file location?
I wanted to set it up so that when I performed a "save as" on the master
document it would automatically change the hyperlink path to the new folder
location.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Hyperlink to document


You coild work with Excels built in dialogue box to get the filename:

Code:
--------------------
Sub GetFileName()
Dim FileName As String
FileName = Application.GetOpenFilename
ActiveSheet.Hyperlinks.Add Anchor:=Range("a1"), Address:= _
FileName, _
TextToDisplay:="What will display in Excel Goes here"
End Sub
--------------------


Ben Davis;185144 Wrote:
I want to create a hyperlink in my excel file that points to a specific
document. I same the master excel file to a new folder for every
project I
do. The document I hyperlink to also is new for every project. How do I
automaticaly change the hyperlink to reflect the new folder / file
location?
I wanted to set it up so that when I performed a "save as" on the
master
document it would automatically change the hyperlink path to the new
folder
location.



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=51144

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
In Document Hyperlink nastech Excel Discussion (Misc queries) 13 June 14th 06 01:01 PM
Hyperlink with scanned document John B Excel Discussion (Misc queries) 0 April 12th 06 08:46 PM
Hyperlink to document on different server lowen Excel Discussion (Misc queries) 2 April 11th 06 10:35 PM
why can't I add a hyperlink to my excel document? DW Excel Discussion (Misc queries) 6 April 12th 05 10:16 PM
Hyperlink to a word document JS Excel Discussion (Misc queries) 1 December 10th 04 10:49 PM


All times are GMT +1. The time now is 05:30 AM.

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"