+ Reply to Thread
Results 1 to 4 of 4

Automating hyperlinks

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Preston
    MS-Off Ver
    Excel 2011
    Posts
    2

    Question Automating hyperlinks

    Is it possible for excel to generate a hyperlink to a sub-folder based on a cell content.

    I have a spreadsheet that lists a unique reference code in A2. In D2 is a cell with a hyperlink to a sub folder. Each unique reference has a sub folder set up. Can I automatically make the hyperlink point to the correct sub-folder without having to manually do each one?

    If it is possible - could someone point me in the right direction as to how to go about this?

    I look forward to hearing from you
    Last edited by xsiguy69; 02-11-2013 at 12:07 PM. Reason: Error in Title

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Automating hyperlinks

    You should be able to use the HYPERLINK() formula instead of hardcoded CTRL-K hyperlinks. The formula would let your piece together the URL from text strings.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-11-2013
    Location
    Preston
    MS-Off Ver
    Excel 2011
    Posts
    2

    Re: Automating hyperlinks

    Thanks for the quick response. What would the text string look like? In my mind it would look like HYPERLINK('/Evidence/'(A2)) - is this right?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Automating hyperlinks

    Path & Filename
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or Using complete file path with file name and extension

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or Using path with file name mentioned in A1 cell

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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