Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
Hi,
Check with this
objs=ActiveDocument.ActiveSheet.GetActiveSheetObjects
for i=lbound(objs) to ubound(objs)
msgbox objs(i).GetObjectID()
next
Hope it helps
Celambarasan
I found part of my problem, but still not solved - should be:
ActiveDocument.ActiveSheet.GetActiveSheetObjects(1).GetObjectId
Hi,
Check with this
objs=ActiveDocument.ActiveSheet.GetActiveSheetObjects
for i=lbound(objs) to ubound(objs)
msgbox objs(i).GetObjectID()
next
Hope it helps
Celambarasan
Thanks, Celambarasan. That was exactly what I needed! ![]()