tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,194
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
hoping someone can help me,
I've a small sample of a verey large macro but it should show you what i need
heres the code
now what i want is the same as this but instead of bringing in the formula with the "=" at the begining just remove the "="
so currently msgbox gives me say "=Sum(A1:G7)"
I just want "Sum(A1:G7)" so simple remove the "=" from the front of the value we get
please help if you can
Thanks
Tony
hoping someone can help me,
I've a small sample of a verey large macro but it should show you what i need
heres the code
VBA Code:
Sub test1()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
frml = cell.Formula
MsgBox frml
End If
Next
End Sub
now what i want is the same as this but instead of bringing in the formula with the "=" at the begining just remove the "="
so currently msgbox gives me say "=Sum(A1:G7)"
I just want "Sum(A1:G7)" so simple remove the "=" from the front of the value we get
please help if you can
Thanks
Tony