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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

query data from a pivot table using a macro

Hello

I got a pivot table

is there a way to query data from this pivot table using a macro

the pivot table got only one row with data the rest show null in the expression

I can walk on water when it freezes
1 Reply
swuehl
MVP
MVP

You want the content of a pivot table's cell (like in your other post)?

So maybe like this (taken from the example and posted to your other post, too):

set table = ActiveDocument.GetSheetObject( "CH01" )

for RowIter = 0 to table.GetRowCount-1

    for ColIter =0 to table.GetColumnCount-1

        set cell = table.GetCell(RowIter,ColIter)

        msgbox(cell.Text)

    next

next

Regards,

Stefan