+ Reply to Thread
Results 1 to 2 of 2

Getting the display text of a Hyperlink

  1. #1
    Registered User
    Join Date
    07-27-2022
    Location
    Bristol
    MS-Off Ver
    365 - Version 2206 Build 16.0.15330.20260
    Posts
    4

    Getting the display text of a Hyperlink

    I want to use the display text of a hyperlink, I'm using the code below as a test but I get a type mismatch error even though I'm declaring it as a string

    Please Login or Register  to view this content.
    I think that Target.Range.Value might come back as a Variant so I tried this as well but still get a Type mismatch....

    Please Login or Register  to view this content.
    Can anyone see where I'm going wrong? Many thanks!

  2. #2
    Registered User
    Join Date
    07-27-2022
    Location
    Bristol
    MS-Off Ver
    365 - Version 2206 Build 16.0.15330.20260
    Posts
    4

    Re: Getting the display text of a Hyperlink

    Ignore me... I should have just gone through what was available for Target, I wasn't looking for a Range!

    Please Login or Register  to view this content.

+ 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. Macro to remove Display Text from hyperlink
    By garyd7 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-05-2019, 01:35 PM
  2. [SOLVED] Macro to edit hyperlink text to display
    By qkxgm0 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-12-2019, 10:07 PM
  3. [SOLVED] Add Hyperlink (text to display) to email body
    By johnnyboy1x in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-23-2017, 07:14 PM
  4. Bulk Edit Hyperlink Text to Display
    By Viv Smith in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2013, 01:59 AM
  5. how can I display another cell as hyperlink text?
    By scorpioscouse in forum Excel General
    Replies: 18
    Last Post: 01-08-2010, 04:48 AM
  6. Display hyperlink text in userform textbox
    By tapapad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2008, 06:37 PM
  7. Hyperlink display text maximum in Excel 2003
    By CTC in forum Excel General
    Replies: 2
    Last Post: 05-25-2005, 03:00 PM

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