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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Active object?

HI Guys,

Any body knows the function to get the active object in a sheet?

Thanks,

6 Replies
shree909
Partner - Specialist II
Partner - Specialist II

Hi  when u use the either textbox or button and wen you goto the actions  ===>>Layout

u will find the  activate object ..

U can use that option to activate when u kick of the button..

Thanks

sree

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

There is no function for that. You can only find that out with a macro

set s=ActiveDocument.ActiveSheet

objs=s.GetSheetObjects

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

    if objs(i).IsActive then msgbox objs(i).getobjectid

next


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks for reply.

I want to get the objet id and use it in a function , so I need to get the object id each time I click on an object....

Not applicable
Author

Can I call this macro in an expression?

Thanks,

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

No


talk is cheap, supply exceeds demand
Not applicable
Author

Hi,

Please Find The Attachment Try this hope this is helpful for you

Regards,

Nirmal.