+ Reply to Thread
Results 1 to 4 of 4

Can You Use A Cell Reference in a Hyperlink?

  1. #1
    Registered User
    Join Date
    07-27-2008
    Location
    New York
    Posts
    5

    Can You Use A Cell Reference in a Hyperlink?

    I'm wondering if there is a way i could use a cell reference in an internal hyperlink such as

    =hyperlink(C:\windows\:::CELL REFERENCE HERE:::\file.pdf,x)
    Last edited by VBA Noob; 07-28-2008 at 05:02 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    example put =HYPERLINK("http://www."&b1&".com")in A1
    put google in b1 and away you go
    same for c:\ so
    =HYPERLINK("C:\Documents and Settings\"&B1&"\Desktop\delete.txt")
    if i put martin wilson in b1
    then
    C:\Documents and Settings\martin wilson\Desktop\delete.txt
    it opens delete.text from my desktop
    Last edited by martindwilson; 07-28-2008 at 05:54 PM.

  3. #3
    Registered User
    Join Date
    07-27-2008
    Location
    New York
    Posts
    5
    awesome thank you

    i assume it works for the actual file name as well

    if it does

    you just saved me lots of time...

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    yep ,example
    =HYPERLINK("C:\Documents and Settings\Martin Wilson\Desktop\"&B1&".txt")
    put
    delete
    in b1
    and delete.txt opens with url
    tip use the friendly name for the hyperlink or it appears somewhat truncated when doing it like this

+ 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