+ Reply to Thread
Results 1 to 2 of 2

Follow hyperlink stored in label controltiptext when clicking on userform label

  1. #1
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Follow hyperlink stored in label controltiptext when clicking on userform label

    Hi all,

    I've got about 100 labels on a userform, with an url stored in the controltiptext
    Is there an easy way to click on the label and then follow the hyperlink stored in the controltiptext of the label I clicked on, without having to type a gazillion times:

    Please Login or Register  to view this content.
    I tried 'application.caller', but that didn't work.
    Any other easy approach to do this?

    Thanks,

    Jasper

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Follow hyperlink stored in label controltiptext when clicking on userform label

    Hi there,

    Take a look at the attached workbook and see if it does what you need.

    I've inserted dummy hyperlink addresses (e.g. "aaa") as the ControlTipText properties of the various labels on the UserForm - you can change these to suit your own requirements, and you can add as many extra Labels as you need.

    The code works on the basis of creating a "FormLabel" Class for each Label on the UserForm, and then incorporating all of those Classes into a Collection.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

+ 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 Use column label as row label for multiple cells
    By MatLCFC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2015, 12:18 PM
  2. Change userform label height without changing label width
    By vamosj in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-16-2015, 01:08 PM
  3. With a move label macro, prevent label from moving onto another label
    By SocratesJC in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-09-2014, 12:34 AM
  4. Replies: 6
    Last Post: 01-07-2014, 03:24 PM
  5. Replies: 1
    Last Post: 09-30-2013, 09:52 AM
  6. Creating a class module for dbl clicking label
    By fire_water in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2009, 10:58 AM
  7. [SOLVED] Clicking checkbox Changes the Label Font
    By kcc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2005, 03:06 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