View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Steven Taylor[_3_] Steven Taylor[_3_] is offline
external usenet poster
 
Posts: 2
Default Pivot Table Connection

I am trying to change the data source of my pivot table.
The code that I normally use is:

ActiveCell.PivotTable.PivotCache.Connection
= "ODBC;DSN=GENERAL LEDGER;"

However I keep getting the follwoing message:

Run-time error '1004':
Application-defined or object-defined error

Does anybody have any suggestions as to my this might be
happening? TIA.

Steven