Return ListItem via HitTest
Excel 2003
Win XP Need to get a reference to the individual ListItem object upon which the user DragDrops within a target ListView control. Private Sub ListView1_OLEDragDrop[snip] Dim LstItm As MSComctlLib.ListItem Set LstItm = Me.ListView1.HitTest(x, y) The above works however it always returns a reference to the first (Index = 1) ListItem object in the target control, regardless of what the x and y coordinates are. Thanks for any help. Desi |
All times are GMT +1. The time now is 09:31 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com