Prevent Coping/Transffering item twice from Listbox1 to Listbox2

  • Thread starter Thread starter K
  • Start date Start date
K

K

Hi all, I am coping/transffering items from listbox1 to listbox2.
how can I prevent coping/transffering item twice by code. I want some
kind of code which popup message saying "You already have copied this
item" etc. Please can any friend can help
 
Hi all,  I am coping/transffering items from listbox1 to listbox2.
how can I prevent coping/transffering item twice by code.  I want some
kind of code which popup message saying "You already have copied this
item" etc.  Please can any friend can help

Something like:

'untested
If Listbox2.Items.Contains _
(Listbox1.SelectedItem) = True Then
Msgbox("You have already added this to Listbox2!")
End If

When user selects any item in Listbox1 to add Listbox2, if item exists
already, Msgbox will appear.

HTH,

Onur Güzel
 
Back
Top