Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 9th, 2006, 05:51 AM
Registered User
 
Join Date: Mar 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Construct Pivot table from variant array

Is it possible to construct a PivotTable from a variant 2 dimensional array?
If it is the case what are the parameters of the object Pivotcache (SourceType:=...)
The following code raise an error
-13: type incompability-
(idem with SourceType:=xlDatabase)
Code:
Sub test1()
Dim PC As PivotCache
 
Quote:
quote:rv is a 2D variant array; 1st line contains valid strings
Set PC = ActiveWorkbook.PivotCaches.Add(SourceType:=xlExternal, SourceData:=rv) ... End Sub
The help on SourceType is not very helpful as xlDatabase and xlExternal are not even mentionned...

Anne-Olga
 
Old October 13th, 2006, 12:00 PM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jkintzele
Default

Did you ever get a reply or find an answer here?





Similar Threads
Thread Thread Starter Forum Replies Last Post
DefaultVersion in Pivot Table Amit Mohanty Excel VBA 1 August 1st, 2006 07:40 PM
Pivot Table vbsolo Excel VBA 3 November 23rd, 2005 01:28 AM
Pivot Table mikeparams SQL Server 2000 1 February 9th, 2005 10:10 AM
Pivot Table ramdasu Excel VBA 0 October 23rd, 2003 03:16 AM
Pivot Table integrity cmquinn Excel VBA 0 June 23rd, 2003 06:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.