+ Reply to Thread
Results 1 to 5 of 5

VBA Add Hyperlink to Cell on Specific Sheet

  1. #1
    Registered User
    Join Date
    09-27-2015
    Location
    AZ
    MS-Off Ver
    2010
    Posts
    23

    VBA Add Hyperlink to Cell on Specific Sheet

    Having an issue with the code below:

    Please Login or Register  to view this content.
    It is supposed to automatically add the text to cell "D5" on "sheet2" when the user types something in the TextBox on the userform. The field is used for a web link. So it also makes the cell into a Hyperlink. The problem is it does not add the text to "sheet2"... It adds it to "sheet1". Think it has to do with the code for the hyperlink. Not sure though.

    For example, same thing as above (but without the hyperlink):

    Please Login or Register  to view this content.
    This example works perfectly. I have been searching for a while and can not seem to find how to make this work. Is there another way I can format the VBA to accomplish this?
    Last edited by scottaz; 04-28-2019 at 12:20 PM.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: VBA Add Hyperlink to Cell on Specific Sheet

    Currently defaulting to the active sheet
    Try:
    Please Login or Register  to view this content.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    09-27-2015
    Location
    AZ
    MS-Off Ver
    2010
    Posts
    23

    Re: VBA Add Hyperlink to Cell on Specific Sheet

    Yep... That did it! Thanks again!

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: VBA Add Hyperlink to Cell on Specific Sheet

    scottaz
    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    09-27-2015
    Location
    AZ
    MS-Off Ver
    2010
    Posts
    23

    Re: VBA Add Hyperlink to Cell on Specific Sheet

    This has been corrected. No additional help needed. Kev_ had the answer.

+ 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] hyperlink that take you to a specific cell within the sheet
    By shj92922 in forum Excel General
    Replies: 1
    Last Post: 11-06-2018, 08:18 AM
  2. Replies: 3
    Last Post: 08-02-2018, 10:52 AM
  3. Hyperlink only links to sheet, not to specific cell referenced
    By AJB611 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-20-2017, 06:47 AM
  4. Replies: 4
    Last Post: 09-26-2014, 09:04 AM
  5. [SOLVED] Hyperlink to a Specific Sheet in Another Workbook
    By danaconda84 in forum Excel General
    Replies: 3
    Last Post: 09-17-2013, 03:58 PM
  6. [SOLVED] Hyperlink to Specific Sheet
    By mpeplow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2007, 05:46 PM
  7. hyperlink to another workbook and a specific sheet
    By Daniel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-20-2005, 12:05 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