Hi,
This code has been produced by the Excel Macro Recorder. I'd like to change the R1C4:R6C5 (which is fixed) by some variable expression as the data to be shown in the Pivot Table varies depending on some logic (counters) in my macro. How can I make this field "variable"?
Sheets("Résultats").Select
ActiveSheet.PivotTables("Résultats").ChangePivotCache ActiveWorkbook. _
PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"[TEST 2022-09 Outil de vote.xlsm]Votes!R1C4:R6C5" _
, Version:=8)
Regards.
Icare.
Bookmarks