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

I have the file path to several files of mine in columb A.
In columb B, I use =hyperlink(A1) and copy down.

The hyperlinks work fine but I only want to display the actual file
name.

example instead of

- G:\Staff Duty Book Folders V2\Book Cover.doc

I want it to display

- Book Cover

Any suggestions I am totally lost on this.
Thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Hyperlink display

=HYPERLINK(A1,RIGHT(A1,LEN(A1)-FIND("^^",
SUBSTITUTE(A1,"\","^^",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))))

=====
Are all the files in the same folder?

If yes, then I'd use another cell to hold the folder:
Put this in (say) $b$1
G:\Staff Duty Book Folders V2\
and put the file name in A1.

Then the formula could be:

=hyperlink($b$1&a1,a1)
or
=hyperlink("file:////" & $b$1 & a1,a1)

I find this especially nice if the folder name could change--I just change one
spot.

QTGlennM wrote:

I have the file path to several files of mine in columb A.
In columb B, I use =hyperlink(A1) and copy down.

The hyperlinks work fine but I only want to display the actual file
name.

example instead of

- G:\Staff Duty Book Folders V2\Book Cover.doc

I want it to display

- Book Cover

Any suggestions I am totally lost on this.
Thanks in advance


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Hyperlink display

Dave you are the man!!! That was the solution that I was looking for.
You deserve a raise just send me your bosses email I will take care of
the rest ;-).


Dave Peterson wrote:
=HYPERLINK(A1,RIGHT(A1,LEN(A1)-FIND("^^",
SUBSTITUTE(A1,"\","^^",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))))

=====
Are all the files in the same folder?

If yes, then I'd use another cell to hold the folder:
Put this in (say) $b$1
G:\Staff Duty Book Folders V2\
and put the file name in A1.

Then the formula could be:

=hyperlink($b$1&a1,a1)
or
=hyperlink("file:////" & $b$1 & a1,a1)

I find this especially nice if the folder name could change--I just change one
spot.

QTGlennM wrote:

I have the file path to several files of mine in columb A.
In columb B, I use =hyperlink(A1) and copy down.

The hyperlinks work fine but I only want to display the actual file
name.

example instead of

- G:\Staff Duty Book Folders V2\Book Cover.doc

I want it to display

- Book Cover

Any suggestions I am totally lost on this.
Thanks in advance


--

Dave Peterson


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
Hyperlink display problem Dave Brooks[_2_] Excel Worksheet Functions 1 March 23rd 08 09:12 PM
Hyperlink display QTGlennM Links and Linking in Excel 3 July 30th 06 11:49 PM
Hyperlink display joel anthony Excel Discussion (Misc queries) 2 April 24th 06 06:56 PM
Hyperlink Display problem Panama Red Excel Worksheet Functions 2 August 9th 05 03:14 PM
Display hyperlink as web address tatih Excel Programming 2 June 15th 04 05:42 PM


All times are GMT +1. The time now is 08:53 AM.

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"