Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Using VB to change a defined formula within a pivottable

I have a pivottable and several formula defined, which is working well
enough, but I'd like to change a formula based on a selection within the
pivottable. My problem is the coding to change the formula. I'm using

Worksheets("RESL Cashflow").PivotTables("1MainRESLCashflow"). _
PivotFormulas("RESLRetention").StandardFormula =
"=RESLOpening$^12"

where "RESL Cashflow" is the name of the sheet, "1MainRESLCashflow" is the
name of the pivottable, and "RESLRetention" is the name of the calculated
field. Am I using the wrong Method?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PivotTable (No actions defined) Manoj Excel Discussion (Misc queries) 0 January 17th 09 02:02 PM
pivottable: how to change source Christoph Strobelt [Bt] Excel Programming 0 August 15th 05 02:03 PM
Change pivottable datasource zoeloe Excel Discussion (Misc queries) 1 June 21st 05 07:36 PM
Change Pivottable layout through VBScript Sahi Excel Programming 1 August 13th 04 02:58 PM
Change SourceData in Excel PivotTable via VBA CarlsonClan Excel Programming 1 April 9th 04 04:15 AM


All times are GMT +1. The time now is 06:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"