a search pop up list box

bido

New Member
Joined
Jun 2, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
greetings everybody! I'm working on a VBA project where I have a main user form called (home). I have a pop up list box with 20 columns (from A to T) called (listBox1) attached to a sub user form called (ListView). There's a text box (textBox1) next to listBox1. I hope if I could enter a 14-digets number in the text box to be searched on the active sheet (column D) and the result will be displayed( the whole row with the number only ) in (listBox1) from A to R . At the same time the same row will be selected in active sheet. I wrote the code attached on the photo ,however it displays only number in LstBox1. I 'm asking if anyone can Kindly reform the code to do the job mentioned above
 

Attachments

  • MyCode1.png
    MyCode1.png
    52 KB · Views: 16
  • MyCode2.png
    MyCode2.png
    28.5 KB · Views: 17

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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