Dear All,
Could someone please give me some advice with the following problem ? I'm desperate.
I've created an VBA UserForm with a multiline Textbox. The user pastes a list of product ID's from a word document or an intranet page, and then that should be checked against the ID's on a column A. Then, write to a second multiline Textbox all the ID's that are not in that column A, so she can then copy and paste that purged list in another word document.
I guess the pseudo-code should be like that :
1.- Get TextBox1.Text (the whole list of ID's, one per line)
2.- Create an "arrayAll" whith those values (line by line)
3.- Purge that "arrayAll" from spaces, carriage returns, etc. So there's only ID numbers
4.- Create an empty "arrayValid" for future use
5.- Do a loop for every element in "arrayAll"
7.- Show that list/array again in a second TextBox2.Text
Could someone please give me some hints ?
Thanks.
Best Regards,
John
Could someone please give me some advice with the following problem ? I'm desperate.
I've created an VBA UserForm with a multiline Textbox. The user pastes a list of product ID's from a word document or an intranet page, and then that should be checked against the ID's on a column A. Then, write to a second multiline Textbox all the ID's that are not in that column A, so she can then copy and paste that purged list in another word document.
I guess the pseudo-code should be like that :
1.- Get TextBox1.Text (the whole list of ID's, one per line)
2.- Create an "arrayAll" whith those values (line by line)
3.- Purge that "arrayAll" from spaces, carriage returns, etc. So there's only ID numbers
4.- Create an empty "arrayValid" for future use
5.- Do a loop for every element in "arrayAll"
5a.- Is this ID in Column A ? We don't want it, next interation
5b.- Is this ID not in Column A ? We want it, we put it in "arrayValid", next interation.
6.- Now we've got "arrayValid" with the list of ID's that were not in Column A5b.- Is this ID not in Column A ? We want it, we put it in "arrayValid", next interation.
7.- Show that list/array again in a second TextBox2.Text
Could someone please give me some hints ?
Thanks.
Best Regards,
John
Last edited: