Hey Guys,
I need help with this, what I am trying to do is extract a value from a string, in the string there is (35), or could be a any number within brackets, which I need for a calculation, can I use the “(” and “)” as I have in the formula?
Thanks in advance,
Darryl.
Option Explicit
dim weekvalue as double
weekvalue = VBA.Mid(Mail_Form.ListBox1.Value & “+”, VBA.InStr(1, “(“, Mail_Form.ListBox1.Value & “+”, vbTextCompare), VBA.InStr(1, “)”, Mail_Form.ListBox1.Value & “+”, vbTextCompare))