+ Reply to Thread
Results 1 to 7 of 7

click hyperlink from listview

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    7

    click hyperlink from listview

    Hi Everyone!

    I am very inexperienced in VBA, but I understand the basics. I was lucky to find some bits and pieces of code that have been posted, that have helped me somewhat accomplish my finished product! I have a userform with a combobox, textbox and 2 command buttons.

    When the search results are populated, the data that contains hyperlinks are not active. The goal is to be able to click the selected result, which will open the link in a new excel workbook or worksheet. If it makes things easier, the only 2 columns that contain hyperlinks are column B and C.

    Any help would be greatly appreciated!

    cnimes

  2. #2
    Registered User
    Join Date
    10-29-2012
    Location
    Bedfordshire, England
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: click hyperlink from listview

    A little more information would help, or a copy of your spreadsheet.
    From the title of your post I'm assuming that after selecting something from the combobox you press one of the buttons and the listbox populates?
    What does it populate with? Filenames?

    Assuming your ListBox is called ListBox1, then something like this might work

    Please Login or Register  to view this content.
    Last edited by Grul; 11-05-2012 at 05:26 PM.

  3. #3
    Registered User
    Join Date
    11-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: click hyperlink from listview

    Thank you so much for your reply!

    I have attached a sample of my database. Once the results are populated, I would like to be able to click the result and it will open in a new sheet. The hyperlink is in column B or C. I have one example with a hyperlink (Client ALLAN).

    Let me know if that makes more sense!

    Thank you again!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: click hyperlink from listview

    Help PLEASE!!

  5. #5
    Registered User
    Join Date
    11-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: click hyperlink from listview

    Any suggestions? I'm open to changing what is currently is!

  6. #6
    Registered User
    Join Date
    10-29-2012
    Location
    Bedfordshire, England
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: click hyperlink from listview

    I'm afraid I can't help much here.
    You're using a version of excel I've never used and a control I've never used. (I use Listboxes rather than list views.)
    I tried to do some quick research on Listviews but I'm still not sure how to implement what you want.

  7. #7
    Registered User
    Join Date
    11-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: click hyperlink from listview

    I got this far....but when I hit "Finish", I get a window that says "Cannot Open the Specified File" with a runtime error message.

    Any thoughts?

    Please Login or Register  to view this content.
    The last line comes back with the error message.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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