
Where XMLDataString is a string of XML data in the XML Spreadsheet format, such as the output from saving as XML Spreadsheet (.xml) from Microsoft Office Excel 2003. ' Recalculate all formulas in the spreadsheet. To address this, call the AddIn method again to reconnect the add-in, and then call the CalculateFull method to recalculate the formulas in the spreadsheet. Using the XMLData or XMLUrl methods in script to load new values into the spreadsheet will disconnect the Analysis ToolPak function add-in.Spreadsheet1.Range("A1").Formula = "=ISEVEN(7)" ' Call the AddIn method to connect the add-in to the ' Instantiate the Analysis ToolPak function add-in. Set Spreadsheet1 = CreateObject("OWC11.Spreadsheet") To use a function from the add-in, you need to use Application.Run and then the name of the function you wish to call. You will now be able to call the Functions contained in the Excel Analysis ToolPak from VBA. To load the Analysis ToolPak add-in, execute the following steps.

' Instantiate a Spreadsheet component object. Make sure the Analysis ToolPak-VBA is ticked and click OK. The Analysis ToolPak is an Excel add-in program that provides data analysis tools for financial, statistical and engineering data analysis.

To use the Analysis ToolPak functions, you must add two tags to the Web page that contains the Spreadsheet component to connect the Analysis ToolPak add-in. The Spreadsheet component supports an additional set of functions that provide the same functionality as the functions in the Analysis ToolPak add-in in Microsoft Excel.

Previous page next page Use the Analysis ToolPak function add-in
