+ Reply to Thread
Results 1 to 2 of 2

how to add url links to listbox using command button

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    35

    Question how to add url links to listbox using command button

    Hello everyone, i have created a userform1 with a commandbutton 'Add New' and a blank listbox. Now when i click on the 'Add New' button, another userform2 is opened where i can enter the URL. Once i enter the URL and click on the 'save' button on the userform2, the URL will be saved in sheet1 and also displays in the Listbox in userform1. Hope this made sense. Can this be done?
    thank you for your help

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    You could display the URL in the listbox but it wouldn't automatically be active, ie clicking it would do nothing.

    What you could do is add code to the Click (or BeforeDoubleClick) of the listbox that uses FollowHyperlink to, well, follow the hyperlink the user has clicked.
    If posting code please use code tags, see here.

+ 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] Command Button to open listbox - select and enter to sheet1
    By Nu2Java in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-06-2021, 01:20 AM
  2. Making a command button and listbox disappear after use
    By benochs1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2013, 12:53 PM
  3. Making a command button visible based on Listbox selection
    By jlwiii34 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2013, 01:56 PM
  4. Listbox and Command Button
    By audioboxer in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-19-2012, 11:41 AM
  5. Command Button Links
    By jespvik in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-28-2009, 09:36 AM

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