+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Hyperlink with hidden path & only shows filename?

  1. #1
    Registered User
    Join Date
    08-05-2006
    Posts
    63

    Hyperlink with hidden path & only shows filename?

    Fellow Forum Members,
    What needs to be changed to this formula:

    =HYPERLINK("C:\Root\4x\trades\2009 forward\01 USD-CAD\"&TEXT($A2,"mm-dd-yy")&" "&TEXT($B2,"hh mm")&".pdf")

    So that the path shown below is hidden in all of my hyperlinks:

    C:\Root\4x\trades\2009 forward\01 USD-CAD

    I want the hyperlink to only show the PDF filename. As shown below:

    02-12-09 10 00.PDF

    The attached Excel file will give you a better idea.

    In the past I have seen hyperlinks where the PATH is hiding. How is this done? ANy help will be greatly appreciated. THanks.
    Attached Files Attached Files
    Last edited by binar; 02-14-2009 at 01:22 PM.

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Hyperlink with hidden path & only shows filename?

    Hi

    Normally when you create a hyperlink by selecting a file from the dialog box you have the option to choose both the text you wish shown in the cell and also any tool tip text as well.

    Possibly you could make this work by pasting in the link text you have at this point, although I think possibly not. Plus the fact is it would be very time consuming.

    I would think the best option is to use VBA, but I would need to check out the possibilities.

    Regards

    Jeff

  3. #3
    Registered User
    Join Date
    08-05-2006
    Posts
    63

    Re: Hyperlink with hidden path & only shows filename?

    Solnajeff,

    Thanks for the post. Attached you will find an Excel Addin that does something very cool. It automatically creates a list for you by drilling down into any path you select and then creates a hyperlinked list of any file extension you specify.

    The hyperlinks this Addin creates is hiding the path in all the hyperlinks. It only shows a hyperlinked filename.

    Can anyone out there look into this XLA file and let me know how this addin is hiding the entire path in a hyperlink and just showing a hyperlinked filename? I prefer only a hyperlinked filename because it's looks much more cleaner.

    Any help will be greatly appreciated.

    Thanks.


    Quote Originally Posted by solnajeff View Post
    Hi

    Normally when you create a hyperlink by selecting a file from the dialog box you have the option to choose both the text you wish shown in the cell and also any tool tip text as well.

    Possibly you could make this work by pasting in the link text you have at this point, although I think possibly not. Plus the fact is it would be very time consuming.

    I would think the best option is to use VBA, but I would need to check out the possibilities.

    Regards

    Jeff
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Hyperlink with hidden path & only shows filename?

    Hi

    I looked at using VBA and the following should do what you require.

    Please Login or Register  to view this content.
    To use the code you will need to delete existing entries then run the macro, the code should be in a standard module. One point to note is that in order to prevent users seeing/finding the hyperlink the sheet must be protected, also the screentip MUST contain some text as otherwise it will display the path.

    If you have any questions please let me know.

    regards

    Jeff
    Last edited by solnajeff; 02-14-2009 at 12:07 AM. Reason: Additonal info

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Hyperlink with hidden path & only shows filename?


  6. #6
    Registered User
    Join Date
    08-05-2006
    Posts
    63

    Re: Hyperlink with hidden path & only shows filename?

    Quote Originally Posted by DonkeyOte View Post
    DonkeyOte and Solnajeff,
    Thanks a lot for all of your help. I finally arrived at a formula that works beutifully:

    =HYPERLINK("C:\Root\4x\trades\2009 forward\01 USD-CAD\"&TEXT($A14,"mm-dd-yy")&" "&TEXT($B14,"hh mm")&".pdf",TEXT($A14,"mm-dd-yy")&" "&TEXT($B14,"hh mm")&".pdf")

    This formula hides the entire path and only shows the filename. Very Cool! Thanks again to everyone for their help and I'm closing this thread as SOLVED.
    Last edited by binar; 02-14-2009 at 01:31 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1