Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing arrays to Excel variant properties
Message
From
20/03/2004 08:10:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/03/2004 06:39:37
Norbert Kustra
SunSoft plus spol. s r.o.
Dolny Kubin, Slovakia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00887487
Message ID:
00888188
Views:
33
>I understand Refresh. I am not sure if I explained the problem correctly: I don't need update pivot data, I need update PivotCache DataSource property - replace the select command with another one, for example:
>Old value:
>SELECT * from TABLE1
>New value:
>SELECT * from TABLE2
>
>And I need keep all PivotTables layouts and formatting.
>
>BTW: SourceData property is read/write
>
>Thanks
> Norbert

You don't need to update data ??? Aren't you doing that when you update Datasource ?
With .ActiveWorkbook.PivotCaches(1)
  .CommandText = 'select * from Table2'
  .BackGroundQuery = .F.
  .Refresh
EndWith
PS: Yes sourcedata was readwrite, missed in help.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform