I have a simple Userform with one TextBox (CARI) and one ListBox (ListNama).
The TextBox is used to search an item in a pivot table then added to the ListBox.
Except the first line (DrillTo),
I get the rest of the code above from a senior member of this forum long time ago, and it works perfectly.
I would like to have the "MyList" variable is defined on another sub,
so I don't have to define it in CARI_Change sub.
What I mean is something like this :
From the code above, I'm expecting that it already knows what are the items in MyList variable,
because it already defined from another sub, for example at the Userform initialize, maybe something like this :
I wonder if it's possible to be done.
Any kind of respond would be greatly appreciated.
Thank you in advanced.
Bookmarks