Results 1 to 3 of 3

Thread: Copying cell text and inserting as hyperlink to another cell

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2021
    Posts
    1

    Copying cell text and inserting as hyperlink to another cell

    VB beginner here...

    I have spreadsheets with a column which has the text of hyperlinks to images. It generally starts at cell AH16. I want to copy that text, then paste it as a hyperlink to the description text which starts at cell O16, and retain the description text but show it formatted as a link. (Manually I have to do this as command K in excel for Mac) Then I want to autofill this down to wherever the data ends.

    Is there a way to do this as a calculation and then do the autofill?

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,711

    Re: Copying cell text and inserting as hyperlink to another cell

    Moderator Action: Moved to office development.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Copying cell text and inserting as hyperlink to another cell

    can you post a sample workbook (zip first) to demonstrate your desired result?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width