excel vba - Replace a letter with another in for a range of cells VBA -


i have these formulas entered range of cells in excel. i'm trying write using vba paste these formulas range of cells 1 letter changed.

for example, i'm trying change =min(compareinputs!i3:j8) =min(compareinputs!m3:n8) , =min(compareinputs!k3:k7) =min(compareinputs!o3:o7).

i'm trying copy , paste new version range of cells formulas in same position relative each other.

i realize using replace function change letters i'm having trouble loop this. have suggestions?

thank you!

with little gave might work set range a3:a8 formula.

worksheets(1).range("a3:a8").formula = " =min(compareinputs!m3:n8)" 

and if dont want formula stay in cell can copy , paste data down road can use like

with ws.range("a") .value = .value end  

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -