Let’s say variables a and b are defined in cells B1 & B2. Cell B3 has a formula 2a+b/3 (=2*B1+B2/3). I want in cell C3 contest of this formula (2*1+2/3) not (=2*B1+B2/3). This can be done manually like this ="(2*"&TEXT(B1,0)&"+"&TEXT(B2,0)&"/3)".
The following Sub shows formula contest...
BTW I have "improved" Macropod's Sub by replacing
MsgBox .Formula & vbCr & strFormula
with
ActiveCell.Offset(0, 1) = "'" & strFormula
I think with Sub you have to run Macro every time you change the formula's parameters. Correct? With function in cell C3 I would have =myFunction(B3) which will...
For example let’s have variables a and b defined in cells B1 & B2. Cell B3 has a formula 2a+b/3 (=2*B1+B2/3). I want in cell C3 contest of this formula (2*1+2/3) not (=2*B1+B2/3). This can be done manually like this ="(2*"&TEXT(B1,0)&"+"&TEXT(B2,0)&"/3)" (basically I want the VBA function that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.