Microsoft
Software
Hardware
Network
Question : vba - listbox double click issue
I have a listbox that populates its rows from a spreadsheet.
When a user double clicks on a row in the listbox after it already populates from the spreadsheet...I need to capture that row in the spreadsheet to populate it into another form...
so the listbox looks like this after it already poplutes from the spreadsheet...
from subject date
xx xx xxx
dd dd dd
ee ee ee
if the user double click on the 'DD' row I need to populate and array with each column in that row into an array, so that I can import that data into another form
..so on the spreadsheet after the 'date' is a message column and I need to carry that message info into the other spreadsheet and paste that 'DD' row into the the a listbox control on another form...
i hope this is clear....
Answer : vba - listbox double click issue
GlobaLevel,
This should do it:
For i = 0 To Me.ListBox1.ListCount - 1
If Me.ListBox1.Selected(i) = True Then
myarray(0, 0) = ListBox1.List(i,0)
myarray(0, 1) = ListBox1.List(i,1)
myarray(0, 2) = ListBox1.List(i,2)
End If
Next i
Patrick
Random Solutions
Trojan After Shock Keeps Opening Mutliple Tabs when using IE and Firefox, how to fix?
VB.NET simple SendMail program error: System.Net.Mail.SmtpExcept
ion: Failure sending mail
How can i do insert more data with insert query with more select statment linqToSQL?
How to compress a string into a short representation in ASP.NET using C# or VB.NET?
Asp.Net profile information in SQL view
Looking for Video Recording Software for Samsung Cameras
SqlDataAdapter InsertCommand not updating primary key value in dataset
Difference between SSID and BSSID
What is differnce between machine.config and web.config?
XenServer 5.5 The Storage repository is not available.