Re: How to Refresh with VBA(SQL) created Pivot
From: Richard (richardmacmillan_at_hfx.eastlink.ca)
Date: 03/04/04
- Next message: Tom Ogilvy: "Re: Return Procedure Name"
- Previous message: Bob Phillips: "Re: Problem with named range as VBA macro parameter"
- Next in thread: Paul LaPlant: "Re: How to Refresh with VBA(SQL) created Pivot"
- Reply: Paul LaPlant: "Re: How to Refresh with VBA(SQL) created Pivot"
- Messages sorted by: [ date ] [ thread ]
Date: 4 Mar 2004 09:38:27 -0800
Paul LaPlant <pepeexcel@hotmail.com> wrote in message news:<uTb5Tp07DHA.3880@tk2msftngp13.phx.gbl>...
> Charles, I looked at that and I don't think that will solve my problem.
> I understand that will recreate the sheet and the pivottable, but I
> don't want to recreate it each time, I just want to be able to refresh
> it so that other pivottables that use the same source can be refreshed
> as well. I don't think this method will address that at all.
>
> Thanks
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
After creating a pivottable using your code, to refresh, recreate your
connection and recordset, then use the following code (changing
"PivotCaches(1)") to refer to the pivotcache you created.
Set objPivotCache = ActiveWorkbook.PivotCaches(1)
Set objPivotCache.Recordset = rsInfo
objPivotCache.Refresh
- Next message: Tom Ogilvy: "Re: Return Procedure Name"
- Previous message: Bob Phillips: "Re: Problem with named range as VBA macro parameter"
- Next in thread: Paul LaPlant: "Re: How to Refresh with VBA(SQL) created Pivot"
- Reply: Paul LaPlant: "Re: How to Refresh with VBA(SQL) created Pivot"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|