+ Reply to Thread
Results 1 to 4 of 4

Create hyperlinks automatically from list of values

  1. #1
    Registered User
    Join Date
    01-18-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Create hyperlinks automatically from list of values

    Hello

    I have a list (constantly being added to) of Account Numbers such as the folowing

    218397
    2938232
    239823
    2343434

    I would like a button at the top of my worksheet that I can press periodically to convert every cell into a Hyperlink with the following structure:

    websiteurl/ACCOUNT NUMBER/view

    Everything about the link will always be the same except for the account number.

    It's important that the cell still shows the account number and not the link address.

    Is this easy to do?

    Note that sometimes I might change an account number in the middle of the list, so the Macro would need to look for any accounts where either the hyperlink is wrong or missing entirely.

    Would really appreciate any help that can be provided!

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,969

    Re: Create hyperlinks automatically from list of values

    This looks at the cells in the named range "mylist" and updates the hyperlinks if the cells contain text or deletes the link if it's empty.
    [AccountNumber] is a placeholder that gets replace by the account number in the cell.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-18-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Create hyperlinks automatically from list of values

    Quote Originally Posted by ByteMarks View Post
    This looks at the cells in the named range "mylist" and updates the hyperlinks if the cells contain text or deletes the link if it's empty.
    [AccountNumber] is a placeholder that gets replace by the account number in the cell.

    Please Login or Register  to view this content.
    Thanks! I've just seen this. I will try and report back

  4. #4
    Registered User
    Join Date
    01-18-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Create hyperlinks automatically from list of values

    Quote Originally Posted by ByteMarks View Post
    This looks at the cells in the named range "mylist" and updates the hyperlinks if the cells contain text or deletes the link if it's empty.
    [AccountNumber] is a placeholder that gets replace by the account number in the cell.

    Please Login or Register  to view this content.
    This works! Just one thing - it removes the formatting in the cell, removing the borders etc. Is there any easy fix?

    Update: I've fixed using conditional formatting as a workaround.
    Last edited by edwarduk26; 11-04-2022 at 05:37 AM.

+ 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. Automatically Create Hyperlinks to referenced cells from other sheets
    By diddy47 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2020, 01:49 PM
  2. Create list of hyperlinks to all sheets
    By lorber123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2016, 03:29 PM
  3. Automatically create hyperlinks for a table of contents with VBA.
    By jakeisbill in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 04-03-2013, 03:58 PM
  4. Create multiple hyperlinks automatically
    By frostgrip in forum Excel General
    Replies: 0
    Last Post: 08-09-2012, 04:32 PM
  5. Automatically insert hyperlinks to list of file
    By gsrai31 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-28-2010, 07:45 AM
  6. [SOLVED] How to automatically create hyperlinks with excel
    By sams9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2006, 02:50 PM
  7. Automatically create hyperlinks
    By aposatsk in forum Excel General
    Replies: 1
    Last Post: 07-24-2006, 04:20 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