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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read 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
Partner - Champion III
Partner - Champion III

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


talk is cheap, supply exceeds demand