Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

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

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.