Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewforum
Creator II
Creator II

Creating table box with macro with the records available in temporary table!

Hi All

May I know how to create the table box using macro with the records available in the temporary table. Can anyone attach the sample code which can be helpful for me to do development.

Thanks

Attitude

1 Reply
jagannalla
Partner - Specialist III
Partner - Specialist III

// This is code for creating tablebox and adding fields for that table

Sub CreateTable

    

Set tb= ActiveDocument.Sheets("Main").CreateTableBox

tb.AddField "FieldName1"

tb.AddField "FieldName2"

End Sub

// This is code adding fileds for existing table

Sub CreateTable

    

Set tb= ActiveDocument.GetSheetObject("TB01")

tb.AddField "FieldName1"

tb.AddField "FieldName2"

End Sub