Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hyperlink macro - with filename
Dears;
I'm Trying to do a macro to do an hyperlink and I've done this, but in the cell appears the path of the file hyperlinked and I would like to know what should I do to display the filename instead of the path. Can you help me? Thanks to all! -- atrep |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hyperlink macro - with filename
This little macro will crate a hyperlink in cell B9. Only the filename will
be displayed and the not full filespec: Sub hyperactive() Set r = Range("B9") s1 = """file:///c:\test\Data.xls""" s2 = """Data.xls""" MsgBox ("=HYPERLINK(" & s1 & "," & s2 & ")") r.Formula = "=HYPERLINK(" & s1 & "," & s2 & ")" End Sub -- Gary''s Student - gsnu200825 "xavi garriga" wrote: Dears; I'm Trying to do a macro to do an hyperlink and I've done this, but in the cell appears the path of the file hyperlinked and I would like to know what should I do to display the filename instead of the path. Can you help me? Thanks to all! -- atrep |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Create hyperlink without filename? | Excel Worksheet Functions | |||
Hyperlink using filename | Excel Worksheet Functions | |||
Store hyperlink, when filename may have # in the name? | Excel Programming | |||
hyperlink filename # | Excel Discussion (Misc queries) | |||
Macro to change filename of the Hyperlink | Excel Programming |