J
JJ
I need to evaluate the result of a modelled cell through VBA. Can someone
give me an idea on how to do this?
E.g
Cell A1 Formula: ="A"&LEFT(H14,1)
Cell H14 Text: World
Cell A1 result: AW
Through VBA I need to get the result for LEFT(H14,1). This would go
something like below:
Sub Evaluate()
Dim strForm As String
strForm = ActiveCell.FormulaLocal
strForm = Right(strForm, Len(strForm) - InStr(1, strForm, "&"))
Debug.Print strForm
End Sub
How can I evaluate the strForm part of the formula to return the result "W"?
Any help would be appreciated
give me an idea on how to do this?
E.g
Cell A1 Formula: ="A"&LEFT(H14,1)
Cell H14 Text: World
Cell A1 result: AW
Through VBA I need to get the result for LEFT(H14,1). This would go
something like below:
Sub Evaluate()
Dim strForm As String
strForm = ActiveCell.FormulaLocal
strForm = Right(strForm, Len(strForm) - InStr(1, strForm, "&"))
Debug.Print strForm
End Sub
How can I evaluate the strForm part of the formula to return the result "W"?
Any help would be appreciated