MPW
Well-known Member
- Joined
- Oct 7, 2009
- Messages
- 571
- Office Version
- 365
- Platform
- Windows
Hey,
I need to trap the formula instead of the value of a cell into a variable.
I was trying something like this.
Ideas?
I need to trap the formula instead of the value of a cell into a variable.
I was trying something like this.
PHP:
Dim cf, cv
If Range("A1").HasFormula = True Then
cf = Range("A1").Formula
ElseIf Range("A1").HasFormula = False Then
cv = Range("A1").Value
End If