How to get data from ListView of a specific column

Toeblake

New Member
Joined
May 25, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi everyone, I have searched and tried some stuff but nothing is working. Here is what I whant to do :

Goal : When I clic on CommandButton1, the variable A (Date) = data from ListView1 Line X column 2 and the variable B (string) = data from ListView1 Line X column 3.

Info :

- To find X, the user select a line on the ListView1 with a CheckBox in the first column. The Checkbox can be removed... If I can retreive the same info with the highligted line by user. But selecting a line trend to "unselect" by itself, so I'm not sure if this is the correct method to retreive the note selected by the user.

- The data in the ListView1 is from the workbook sheet 2

- Sadly I cannot use DataGrid for this project.

Thanks for all your help!!!

Toeblake

2023-06-05 113600.jpg


2023-06-05 114643.jpg
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Solved!!!

FYI: Using ListView1_DblClick() event with ListView1.SelectedItem.Index in sub.

Thanks
 
Upvote 0
Solution

Forum statistics

Threads
1,224,829
Messages
6,181,218
Members
453,024
Latest member
Wingit77

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top