BrianExcel
Well-known Member
- Joined
- Apr 21, 2010
- Messages
- 975
I am using the following code to find the cell containing the words "Reporting Dates":
Within that cell is a varying date range, but the cell will ALWAYS Start with the text "Reporting Dates - ".
I need to extract the date range, basically everything RIGHT of the "-", to parse it as a string to pass into a chart.
I can't seem to get it to work...
VBA Code:
With ActiveWorkbook.Worksheets("Stats")
Set DateRangeEdits = .Cells.Find(What:="Reporting Dates", LookIn:=xlValues, lookAt:=xlPart)
End With
Within that cell is a varying date range, but the cell will ALWAYS Start with the text "Reporting Dates - ".
I need to extract the date range, basically everything RIGHT of the "-", to parse it as a string to pass into a chart.
I can't seem to get it to work...