Connection parameter of the PivotTableWizard () method

1
Hello, could anyone give me an example of using the appropriate parameter connection of method PivotTableWizard() ?

When I use this parameter I get the error: The PivotTableWizard property of the Worksheet class can not be obtained. Here is the code:

Dim wb, excel As Object

wb = GetWorkbook(handle, workbook)
excel = wb.Application
Dim ws as Object = GetWorksheet(handle,workbook,worksheetname)
Dim objTable As PivotTable
objTable = ws.PivotTableWizard(,,,,,,,,,,,,,,,"ODBC;Provider=MSDASQL.1;Persist Security Info=False;Data Source=SQLexpress;Initial Catalog=PivotChart")
    
asked by anonymous 25.04.2018 / 22:41

0 answers