Prevent Coping/Transffering item twice from Listbox1 to Listbox2

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
 
C

CellShocked

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


Test the cell contents for a match, and return the script to the error
message.

Unless there *can* be the same data there, from a previous fill. Then
all bets are off.

If the rule is that the only data in listbox2 is data that was only
ever copied over from listbox1, then it can be emptied before the copy
action, OR you can copy box2 to a new box3 and then make the box1 to box2
copy, then compare the box2 to box3 for a complete match. It does *NOT*
prove that a previous copy occurred. It would only prove that the data
was the same, not when or how it got there.

You could do that by tracking the button press date and time and then
examine/test that during the operation, and set rules for what times and
dates constitutes a recent copy operation.

Another way would be to empty the box after it gets utilized. Then you
never have to worry.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top