Coding Datasource for Pivot Table

Hi,

I'm on the process of linking my AS2005 cube to VB 2005 using ms pivot table 11.0. However, instead of doing an early binding, I want to code my datasource connection. Do you have any sample on how to do this

Thank you

chemps



Answer this question

Coding Datasource for Pivot Table

  • Rod at Work

    usually, to define the connection of the pivot table is by right-clicking on the axpivottable object and configure the connection there. However, i want to do that in code. every time i used the axpivottable1.connection = <connection string> i get an error. how do i define that connection in code

    thanks

    chemps


  • SubZero

    I am not sure if I understand the question. Here is a link on how to pivot a table and display it.

    http://www.vb-tips.com/default.aspx ID=28f49f7c-ec40-4472-9b28-2b9e762316ab



  • Coding Datasource for Pivot Table