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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Object ID from QlikView API

Hi everyone,

Having difficulty trying to pull Object ID for currently Active Object into a VBScript macro. 

I have:

strObjectName = ActiveDocument.ActiveSheet.GetActiveObjects(1).GetObjectId

and I am getting the error:

Object doesn't support the property or method: 'ActiveDocument.ActiveSheet.GetActiveObjects'

What am I doing wrong here? I am using the object model found in the APIGuide.qvw for QV 9 on a QV 10 server.

Holly M.

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Check with this

    

objs=ActiveDocument.ActiveSheet.GetActiveSheetObjects

for i=lbound(objs) to ubound(objs)

    msgbox objs(i).GetObjectID()

next

Hope it helps

Celambarasan

View solution in original post

3 Replies
Not applicable
Author

I found part of my problem, but still not solved - should be:

ActiveDocument.ActiveSheet.GetActiveSheetObjects(1).GetObjectId

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Check with this

    

objs=ActiveDocument.ActiveSheet.GetActiveSheetObjects

for i=lbound(objs) to ubound(objs)

    msgbox objs(i).GetObjectID()

next

Hope it helps

Celambarasan

Not applicable
Author

Thanks, Celambarasan.  That was exactly what I needed!