Eric Amtsberg
New Member
I'm running a dashboard spreadsheet that imports a data file and parses the timestamps. I'm getting a run-time error 13 and I have no idea how to troubleshoot the macro doing the timestamp conversion. Can anyone help?
It appears this is causing the problem
in this macro
Here's the dashboard file:
https://www.dropbox.com/s/orxxdcfdvnuzu81/Analytics Dashboard.xlsm?dl=0
Data file I'm importing to the dashboard is attached.
It appears this is causing the problem
Code:
.Cells(i, 8).Value = TimeValue(Left(Right(wksRawData.Cells(i, 1), 8), 4) & "0")
in this macro
Code:
End With
' parse day, date and time
For i = 2 To intRows
With wksRawData
.Cells(i, 6).Value = _
Weekday(DateValue(Left(wksRawData.Cells(i, 1), 10)))
.Cells(i, 7).Value = _
DateValue(Left(wksRawData.Cells(i, 1), 10))
If Len(wksRawData.Cells(i, 1).Value) > 12 Then
.Cells(i, 8).Value = TimeValue(Left(Right(wksRawData.Cells(i, 1), 8), 4) & "0")
Else
.Cells(i, 8).Value = TimeValue("00:00")
End If
.Range("F1:H1").Value = Array("Day", "Date", "Time")
End With
Next i
Here's the dashboard file:
https://www.dropbox.com/s/orxxdcfdvnuzu81/Analytics Dashboard.xlsm?dl=0
Data file I'm importing to the dashboard is attached.