Is it possible to pas a variable to a formula with in VBA? Example i am trying to add a specific cell in all the spreadsheets in a workbook to a summary page. I am trying to duplicate
( ActiveCell.FormulaR1C1 = _
“=’F700001 CLIN 02AC 728′!RC+’F700001 CLIN 02AA 726′!RC+’F700001 CLIN 728′!RC+’F700001 CLIN 726′!RC+’F700001 CLIN 0001 999′!RC+’F700001 CLIN 999′!RC”)
using a variable that has trapped the spreedsheet names like
(“ActiveCell.FormulaR1C1 = “= & wkshtnames(i – 1) & !RC+ & wkshtnames(i – 2) & !RC…”)
the variable wkshtnames holds all of the names of the spreedsheets in an array. No ,atter what I try I get a run time 1004 error, Application-defined or object-defined error.
Thank You