Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sunny_talwar

Function to determine Chart Type

Hi Team -

Has anyone come across a function to determine which chart type we are on? Something like =ChartType('Object ID')

Best,

Sunny

12 Replies
Kushal_Chawda

Yes. Got it

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi Sunny,

I have not tried this code before, but it looks like what you need. Hope it helps

rem ** get unique object ID for first object on sheet Main **

set s = ActiveDocument.Sheets("Main") // You can possibly have a variable to determine activesheet name

set so = s.SheetObjects(0)

id = so.GetObjectId

msgbox("ID = " & id)

sunny_talwar
Author

Would you be able to share the sample here?