+ Reply to Thread
Results 1 to 14 of 14

Hyperlink Autofill

  1. #1
    Registered User
    Join Date
    10-08-2013
    Location
    Puerto Rico
    MS-Off Ver
    Excel 2007
    Posts
    7

    Hyperlink Autofill

    First post, thanks for this great tool, finally have come up with a question I can't find the answer by searching for on the site.

    I'm trying to create a hyperlink from a cell in a workbook to another sheet in the same book that will display the contents of the linked cell. I've been able to get that far, but trying to autofill or copy the formula means I have to manually edit every single formula to move to the next cell down. Example of my goal/setup:

    Sheet 1: Hyperlink that displays an individual's name (which is listed on Sheet 2)
    =HYPERLINK("#'Sheet 2'!B4",'Sheet 2'!B4)
    =HYPERLINK("#'Sheet 2'!B5",'Sheet 2'!B5)
    =HYPERLINK("#'Sheet 2'!B6",'Sheet 2'!B6)

    Sheet 2: List of names
    Bob
    Jim
    Tom

    The link location is what does not autofill correctly, the friendly name does automatically move down the column when dragged. Thanks in advance!

    Shribbles

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Hyperlink Autofill

    Hello Shribbles
    Your first reference to Sheet2 is hard coded within double quotes ("") thus making it a fixed text value. Try the following:

    Please Login or Register  to view this content.
    Both Sheet2 references are now cell references and should move relatively.

    Hope this helps.
    DBY

  3. #3
    Registered User
    Join Date
    10-08-2013
    Location
    Puerto Rico
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Hyperlink Autofill

    Thanks for the quick reply!

    I tried the formula you provided. When I hit "Enter" to complete it pops up requesting to update the file. Tried letting it choose the existing file, but it returns a "#NAME?" value.

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Hyperlink Autofill

    Sorry I don't know why that would happen. I works fine for me on my test sheet. It returns links to Bob; Jim and Tom. These do have to be valid references in your workbook.

  5. #5
    Registered User
    Join Date
    10-08-2013
    Location
    Puerto Rico
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Hyperlink Autofill

    Quote Originally Posted by DBY View Post
    Sorry I don't know why that would happen. I works fine for me on my test sheet. It returns links to Bob; Jim and Tom. These do have to be valid references in your workbook.
    Those were examples, but I can send you the actual file if it would help. I can't give you all the information but the basics will still apply.

  6. #6
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Hyperlink Autofill

    If you could upload an example file without any confidential information contained it might help myself or other forum members to see more clearly what you're trying to do.

  7. #7
    Registered User
    Join Date
    10-08-2013
    Location
    Puerto Rico
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Hyperlink Autofill

    Quote Originally Posted by DBY View Post
    If you could upload an example file without any confidential information contained it might help myself or other forum members to see more clearly what you're trying to do.
    Sure, absolutely. OER & NCOER Tracker Blank.xlsx

  8. #8
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Hyperlink Autofill

    Not sure where you are wishing to place your hyperlinks and what are they linking to?

  9. #9
    Registered User
    Join Date
    10-08-2013
    Location
    Puerto Rico
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Hyperlink Autofill

    Hyperlink on first sheet (rating scheme) under name, link to second sheet (status comments). I'd like to have the name populate from sheet2 to sheet1 with a hyperlink to sheet2. Used to be just sheet1 but adding more functionality.

  10. #10
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Hyperlink Autofill

    Right I see a little clearer, I think! In cell C5 downwards on the Rating Scheme Sheet try:

    Please Login or Register  to view this content.
    This shows the name and links to that cell on the Status Comments sheet. Is that correct?

  11. #11
    Registered User
    Join Date
    10-08-2013
    Location
    Puerto Rico
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Hyperlink Autofill

    Quote Originally Posted by DBY View Post
    Right I see a little clearer, I think! In cell C5 downwards on the Rating Scheme Sheet try:

    Please Login or Register  to view this content.
    This shows the name and links to that cell on the Status Comments sheet. Is that correct?
    That works, but only if the names don't get resorted (Z-A, or by Date for instance). If they get shuffled, the hyperlink still goes to the original cell, thus showing the wrong name.

  12. #12
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Hyperlink Autofill

    Okay, try:

    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    10-08-2013
    Location
    Puerto Rico
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Hyperlink Autofill

    Quote Originally Posted by DBY View Post
    Okay, try:

    Please Login or Register  to view this content.
    That did it! Thanks a bunch, I've been messing with this thing for a couple days now, glad you were able to help. So that's saying if cell contains a value, create hyperlink?

  14. #14
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Hyperlink Autofill

    Happy it seems to work it is a little tricky with the sorting. The IF statement just avoids creating a blank hyperlink to a blank cell you could omit it if you wish.

    DBY

+ 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. [SOLVED] Very small AutoFill macro showing "AutoFill methode of range class failed" why ?
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2013, 10:21 PM
  2. Macro for Autofill removes header info when there is no data to autofill
    By esturan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2012, 01:42 PM
  3. Autofill a hyperlink into workbook?
    By Andydayuk in forum Excel General
    Replies: 0
    Last Post: 10-16-2009, 01:30 AM
  4. Replies: 1
    Last Post: 06-17-2005, 04:05 PM
  5. Replies: 0
    Last Post: 03-02-2005, 12:06 PM

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