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

loop through charts using macro

hello

I'm using QlikView 11.2

I want to loop through all available charts of the active sheet

I'm writing the following macro

Sub GetCharts

Objects = ActiveDocument.ActiveSheet.GetSheetObjects

For i = lBound(Objects) To uBound(Objects)

If obj.GetObjectType = 11  Then

msgbox("Chart: " & obj.GetObjectId)

End If

next

End Sub

however when I call this macro from a button the Edit Module opens and nothing happens

please advise

I can walk on water when it freezes
1 Reply
Gysbert_Wassenaar

See this discussion for some example code that loops through sheet objects: Re: Load help text of objects


talk is cheap, supply exceeds demand