+ Reply to Thread
Results 1 to 6 of 6

Automatically hyperlink worksheets when values entered

  1. #1
    Registered User
    Join Date
    04-13-2012
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2003
    Posts
    29

    Automatically hyperlink worksheets when values entered

    Hi all,

    I would appreciate some assistance from the gurus here. I have an excel file that is used to record information about particular projects. We need to record dates related to these events and these are stored on separate worksheets. These use a key of sorts, where the unique references are replicated on all worksheets.

    I have set up the data sheet to generate the unique identifier and the hyperlinks to the Received! and Sent! worksheets automatically as new unique references are added to the Data! worksheet.

    What I would like is a VBA code to populate hyperlinks in the Received! and Sent! worksheets in column B, to link back to the Data! worksheet unique reference.

    I had used formulas in the past, but the Data! worksheet is massive. I've needed to write hundreds of hyperlink formulas referencing blank spaces in the Data! sheet in anticipation of new projects. It would be better if they were populated as the sheet expanded.

    Much appreciated. Dummy sheet attached.
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Automatically hyperlink worksheets when values entered

    Just replace the workbook name with #. This is how Excel identifies bookmarks when making hyperlinks the long way with Ctrl+K.

    E2:

    =HYPERLINK("#Received!"&CELL("address",A2),IF(MAX(Received!C2:L2)=0,"Enter Received Date",(MAX(Received!C2:L2))))
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    04-13-2012
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Automatically hyperlink worksheets when values entered

    Thanks daffodil11,

    I didn't really explain that well. I'm ok with the links being populated in the Data! worksheet. What I'm looking for is links to be generated automatically in the Received! and Sent! worksheets (back to the Data! worksheet).

    I have previously used: =HYPERLINK("[Dummyfile.xlsm]Data!$A2",Data!$A2) with conditional formatting to hide the error values. However, because of the volume of entries being added to the file, there are hundreds of errors being hidden.

    Is there a way of adding this hyperlink automatically when a new unique reference is entered in the Data! worksheet

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Automatically hyperlink worksheets when values entered

    How are the unique references getting onto the Received and Sent sheets now? Are you copying those over by hand or are you trying to get those to populate as well?

  5. #5
    Registered User
    Join Date
    04-13-2012
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Automatically hyperlink worksheets when values entered

    =Data!A2

    Conditional formatting so that 0 leaves the cell blank.

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Automatically hyperlink worksheets when values entered

    I've gotten as far as:
    Please Login or Register  to view this content.
    But unfortunately the code is evaluating the target, ie 14 ÷ 001 and showing it as the link back instead of holding it as a string value such as "14/001"

    I'll see if one of the great old masters can lend a hand.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need help to automatically calculate values entered
    By tiggi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2013, 10:12 PM
  2. Replies: 2
    Last Post: 06-22-2012, 02:11 AM
  3. Replies: 0
    Last Post: 10-10-2011, 05:11 PM
  4. Replies: 3
    Last Post: 08-31-2011, 02:42 AM
  5. automatically add and rename three worksheets and hyperlink to them
    By just_some_guy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-24-2011, 04:31 PM

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