Hi,
I have an Excel Workbook that gives me an Error 1004 Method 'Range' of object '_Global' failed:
When I click on Debug button , it shows the code as below:
Sub PEAdvWbRunEntryPoint(Optional val As Variant)
If IsMissing(val) Then
Application.Run "RunForPeriodEntered"
Else
Range("StartDateEntry") = val.DataWindowObj.StartTime
Range("EndDateEntry") = val.DataWindowObj.EndTime
Application.Run "RunForPeriodEntered", val
End If
End Sub
I have an Excel Workbook that gives me an Error 1004 Method 'Range' of object '_Global' failed:
When I click on Debug button , it shows the code as below:
Sub PEAdvWbRunEntryPoint(Optional val As Variant)
If IsMissing(val) Then
Application.Run "RunForPeriodEntered"
Else
Range("StartDateEntry") = val.DataWindowObj.StartTime
Range("EndDateEntry") = val.DataWindowObj.EndTime
Application.Run "RunForPeriodEntered", val
End If
End Sub