Hi,
The formula below works great when I use it in a cell on a worksheet:
=Left(RunInformation!E6, Find("_", Substitute(RunInformation!E6, "_", "_", 1)) - 1)
What it does, it removes all the characters after the first underscore and the underscore as well. I want to now use this formula with the following VBA code, but I get an error highlighting the word "Subsitute" and saying that the function is not defined. I really don't know how to fix this
The formula below works great when I use it in a cell on a worksheet:
=Left(RunInformation!E6, Find("_", Substitute(RunInformation!E6, "_", "_", 1)) - 1)
What it does, it removes all the characters after the first underscore and the underscore as well. I want to now use this formula with the following VBA code, but I get an error highlighting the word "Subsitute" and saying that the function is not defined. I really don't know how to fix this
Code:
Range("A3:" & Number2Char(LastColumn) & "3").Select
ActiveCell.FormulaR1C1 = Left(RunInformation!E6, Find("_", Substitute(RunInformation!E6, "_", "_", 1)) - 1) & " Points"
Selection.Font.Bold = True
With Selection.Font