check excel sheets with listbox

vijay2482

Board Regular
Joined
Mar 3, 2009
Messages
142
hi,

i have two excel sheets say sheet1 and sheet2
now i want to check if the items in the listbox has a matching in sheet1 and sheet2
two conditions to check:
1)if the items in the listbox are not in both the sheets
2)if the items in the listbox is not in sheet1 but in sheet2

these two conditions has to be checked and if they are true, a warning message has to be set, saying that this item in the listbox is not in both the sheets or this item in the listbox is not in sheet1 but in sheet2

how to obtain this?

thanks in advance <!-- / message --><!-- BEGIN TEMPLATE: ad_showthread_firstpost_sig --><!-- END TEMPLATE: ad_showthread_firstpost_sig -->
<!-- controls -->
progress.gif
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
i have a userform in which i have a textbox,listbox,add button,remove button
i enter the values in the textbox and add it in the listbox
if i want to delete a value i use remove button

i guess to check with the excel, i need to store the listbox value somewhere as a temp buffer.....

if im right, how to achieve it????

thanks for the reply
 
Upvote 0
Re: check excel sheets with listbox(Please Help)

hi all,
somebody please help me to do the above requirement......

thanks in advance
 
Upvote 0

Forum statistics

Threads
1,214,659
Messages
6,120,786
Members
448,992
Latest member
prabhuk279

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