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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Objects IDs from Sheet in macro

Hello everyone,

is there any way how I can get a list of all the object Ids from a single sheet using a macro?

regards,

MT

5 Replies
ashfaq_haseeb
Champion III
Champion III

Hi you can use below

ActiveDocument.GetSheetObject("CH01") 

Regards

ASHFAQ

tresesco
MVP
MVP

try like:

Objects = ActiveDocument.ActiveSheet.GetSheetObjects

ID(objects)

For i = lBound(Objects) To uBound(Objects)

    ID(i) =Objects(i).GetObjectID

Not applicable
Author

but my question was how i can figure out the object ID?? just to be a little more specific. for example i have a sheet called April and now on this sheet there are 3 pivot charts. how can I get a list of the object ID from these 3 pivot charts.

regards,

MT

luciancotea
Specialist
Specialist

You can use QV Plus - Expression Manager to list all the objects by sheet (Type, ID and Caption)

marcus_sommer

Have a look in APIGuide.qvw. There you will find examples like them from tresesco suggested which is already the right approach for you - loop through each sheet for each object and return the type, id and so on and if it match your condition do something.

Alternatively you could read these kind (and some more) of meta-data from document layout (file --> export --> document layout).

- Marcus