+ Reply to Thread
Results 1 to 3 of 3

VBA double-click item from listview not firing events

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    2

    VBA double-click item from listview not firing events

    I've created a ListView4 object on MyForm and called it 'MyListView'. I'm able to successfully display it and populate it with a list of items (2 columns). So far, so good.

    I'm trying to intercept a double-click on an entry in the listview so I can process the selected value and close the ListView. Unfortunately, the MyListView_DblClick event apparently does not get triggered (I've also tried other events, but can't get them to work also).

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: VBA double-click item from listview not firing events

    Where is that code located? For it to work it would need to be in the userfrom - I suspect that you have it in a module

  3. #3
    Registered User
    Join Date
    04-22-2014
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: VBA double-click item from listview not firing events

    Thanks Kyle123! This was the first time I used any of these events and I put them in the module, just like you suspected. After moving them to the userform everything worked perfectly.

    Thanks for the very quick response.

    Kris

+ 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. Double click Listbox to edit item
    By johan12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2012, 04:12 AM
  2. List box Double Click Copy and remove item
    By thameem127 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2012, 05:00 PM
  3. [SOLVED] Need selected item from listbox after double click
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2006, 11:20 AM
  4. [SOLVED] Two double click events?
    By PG Oriel in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-07-2006, 03:55 PM
  5. Firing Click Events with Accelerators
    By Geoff in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-18-2005, 08:05 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