Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all!
I have a problem with a passing current selections from Doc1 to Doc2 QVW file by macro.
This is my problem macro:
Sub OpenDoc
set x = ActiveDocument.GetCurrentSelections
s = x.Selections
v = x.VarId
Set MyApp = CreateObject("QlikTech.QlikView")
Set MyDoc = MyApp.OpenDoc ("Doc2.qvw","","")
for i = lbound(s) to ubound(s)
MyDoc.Fields(v(i)).Select s(i)
next
End Sub
My documents include the same type of fields with the same names
Hi,
I'm not good at macros - I don't know VB - but you can pass a selection from one doc to another without a macro when you use document_chaining. There's a checkbox. Why wouldn't that work for you?
Best regards,
DataNibbler