Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.


Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

Access Sheet & Object VBS


I was looking around how to switch between sheets and how to access individual object.

Hope this might help a bit.

Sub Loop_Sheets_And_Objects

    'loop through all sheets

    for i = 0 to ActiveDocument.NoOfSheets - 1

        'Switching between Sheets



        set s=ActiveDocument.Sheets(ActiveDocument.Sheets(i).GetProperties.Name)


        for j=0 to orignumber-1

             rem ** get unique object ID for given object on sheet **

             set so = s.SheetObjects(j)


             id = so.GetObjectId

             'msgbox("ID = " & id)

             'Access on specific Object Id

             IF id="Document\T_DAILY_SUM" THEN

                 msgbox("Access on a table")

             END IF



End Sub