Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
christian77
Partner - Specialist
Partner - Specialist

Get an object from other Qlik document in VB module

Hi:

I need to get an object from another document. Instead of ActiveDocument.GetSheetObject("CH01"),
OtherDocument.GetSheetObject.

Does anybody know the syntax?

Thanks.

4 Replies
imrencimen
Contributor III
Contributor III

Did you solve it??

marcus_sommer

You need to open and to instantiate the new app and then you could access the objects. Here a small example:

set newApp = ActiveDocument.GetApplication

set newdoc = newApp.OpenDoc (path & QVW_file,"","")


and then:


newdoc.Fields("Month").Select month(now() - 1)

set ex = newdoc.GetSheetObject("CH10029")

....

- Marcus

tamilarasu
Champion
Champion

Hi Imren,

What is your exact requirement.?

imrencimen
Contributor III
Contributor III

ı want to prepeare a dashboard pdf which has charts from different qvw objects.

dail_ product_report

sales_report

notdelivered_products etc..

all raports have a dashboard. I want to bring selected charts together (which are from other tree QVW)

--(without data-only visually)  and export to pdf od ppt then send to email.

How can I do this with macro?