I.am.Sam
Honorary Master
Hi,
Any QV experts here ?
I have few pivot sheets that i would like to send to excel. One excel file should have the 4 pivots.
I have a code for it but i am not sure what is the meaning of this as someone else wrote the code
When i adjust the code with the new sheets, only one gets sent to excel
what does the
Dim aryExport(3,4) and aryExport(0,0) mean ?
Any QV experts here ?
I have few pivot sheets that i would like to send to excel. One excel file should have the 4 pivots.
I have a code for it but i am not sure what is the meaning of this as someone else wrote the code
When i adjust the code with the new sheets, only one gets sent to excel
Code:
sub exportToExcel_Variant3
Dim aryExport(3,4)
aryExport(0,0) = "CH01"
aryExport(0,1) = "AgentPerDay"
aryExport(0,2) = "A1"
aryExport(0,3) = "data"
aryExport(1,0) = "CH02"
aryExport(1,1) = "TeamPerDay"
aryExport(1,2) = "E1"
aryExport(1,3) = "data"
aryExport(2,0) = "CH03"
aryExport(2,1) = "DeptPerDay"
aryExport(2,2) = "A1"
aryExport(2,3) = "data"
aryExport(3,0) = "CH04"
aryExport(3,1) = "OpsPerDay"
aryExport(3,2) = "A1"
aryExport(3,3) = "data"
Dim objExcelWorkbook 'as Excel.Workbook
Set objExcelWorkbook = copyObjectsToExcelSheet(ActiveDocument, aryExport)
what does the
Dim aryExport(3,4) and aryExport(0,0) mean ?