Hyperlink in display name

CharmaineKavanagh 1 Reputation point
2022-10-05T17:41:25.557+00:00

UPDATED:
I used FORMULAS, selected INSERT FUNCTION, and chose HYPERLINK. Entered the formula parameters and dragged the result down and now all the names are the hyperlink! I forgot how I was able delete the original columns, but these can also be hidden instead of deleting them. I do remember a screen at some point with an option the select Text or Unicode Text but I'm unable to replicate that action. Another option is to copy the formulated column to Word, select copy, open the Excel sheet, go to the column and first cell you want the data in, select paste options, choose keep source formatting. Delete the columns with the data used to create the formula! All is well!

On excel sheet:
I have a website name on column A
I have the URL on Column B
I only want to click column A with hyperlink attached to website name.
I know I can open each URL individually and specify the text to display for each URL but this is time consuming.
Is there a script to add the URL in Column B to the text to display in Column A?
248157-screenshot-2022-10-05-180657.png
248137-screenshot-2022-10-05-180729.png
248130-screenshot-2022-10-05-183458.png
248138-screenshot-2022-10-06-123037.png
Example:
COLUMN A COLUMN B
NAME WEBSITE
Google https://google.com
Microsoft https://microsoft.com
Amazon https://amazon.com

247847-screenshot-2022-10-05-131305.png
247856-screenshot-2022-10-05-131613.png

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,480 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,639 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 54,466 Reputation points
    2022-10-05T19:00:02.53+00:00

    Hi @CharmaineKavanagh

    You will need to enable VBA (Developer Tab) to use the following script:

    Private Sub hyper()  
      
    ActiveCell.Hyperlinks.Add Anchor:=Sheets("sub").Range("A1"), Address:="https://www.educba.com/", SubAddress:="", ScreenTip:="it is a Hyperlink", TextToDisplay:="Excel Training"  
      
    End Sub  
    

    Cited from https://www.educba.com/vba-hyperlink/ (you can see the follow example in this link). You will just need to create a loop that looks through each row and use B# as the link for A#.

    -------------------------------------

    If this is helpful please accept answer.

    ----------------------------------------

    If this is helpful please accept answer.

    0 comments No comments

  2. CharmaineKavanagh 1 Reputation point
    2022-10-05T23:55:25.183+00:00

    Figured it out. I used FORMULAS and chose HYPERLINK. Created the formula and dragged the cell down and now all the names are the hyperlink!