Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
PivotTable (No actions defined) | Excel Discussion (Misc queries) | |||
pivottable: how to change source | Excel Programming | |||
Change pivottable datasource | Excel Discussion (Misc queries) | |||
Change Pivottable layout through VBScript | Excel Programming | |||
Change SourceData in Excel PivotTable via VBA | Excel Programming |