Arrays and List box

nishandsouza

New Member
Joined
Jun 14, 2018
Messages
3
Hi i am new to VBA
I am looking for the logic and code to comapre a value from array frommone sheet to another and if match found store it in one list box and if match is not found store it in another list box
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
To be more clear, here are few details how the sheet looks
Sheet1 one has 5 columns
Sheet 2 has 3 Columns

I have a form created, Wherein there is an Array of around 100 phone numbers from sheet2
All these 100 numbers has to be compared from Column 3 for sheet.
in the form there are two list boxes next to each other.
If the 1st Number in the array is matched from Column 3 of sheet1, the the number should be added in listbox1, if not matched it will go to list box2
in this way all 100 numbers are matched from sheet one and gets separated in listbox1 and listbox2 if present or not present.

Thanks in advance.
 
Upvote 0

Forum statistics

Threads
1,215,500
Messages
6,125,168
Members
449,211
Latest member
ykrcory

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