Using VB to change a defined formula within a pivottable

M

Mark Parent

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top