This sounds complicated.
Alternatively, I'd suggest giving the users the ability to paste a list of customer codes and have that list act as the filter.
Here's a community topic that discusses how that can be accomplished... http://community.qlik.com/message/72460#72460
I have used the Macro solution and I am almost there.
The issue that I have is that accessing the report via QlikView application and Internet Explorer work differently.
Let me explain...
When I paste the list into the input box in the QlikView application it pastes like this...
A B C
I therefore replace chr(32) in the macro.
However, in Internet explorer it pastes as...
I therefore need to replace chr(10) in the macro...
Unfortunately I will have users accessing from both.
How do I determine whether I need to replace chr(32) or chr(10)
chr(32) = Space
chr(10) = carriage return
Example of macro I am using is from link "B" provided...
set v = ActiveDocument.Variables("vCustomerSpace")
strVariable = v.GetContent.String
vOptions = "'" & replace(strVariable, chr(32), "','") & "'"
C.Select "=match(cus_Code," & vOptions & ")"