Hi,
I need to achieve the following:
1. insert an ActiveX listbox (single select, 4 columns) in the worksheet (Sheet1)
2. populate the listbox with a range in another sheet (sheet2)
3. after populating the list, whenever the user clicks on a row, a userform should pop-up with all the values in the 4 columns of the listbox in 4 different textboxes
4. user may want to edit the data, which may then be committed to the data sheet (sheet2) and refreshed in the listbox as well.
I am stuck at the 3rd step. Whenever I try to access the listbox range, the following error is generated:
Run-time error '1004':
Method 'Range' of object '_Worksheet' failed
The code that I am using is:
Is my approach wrong? Or some problem with my coding? Please help.
Peace,
Shivboy
Bookmarks