Problem with windows scriot in vb script
I am getting an error "object does not support this property or method RptTitle" in the below code snippet,let me know the problem with this
-----------------------------------------------------------------
Sub InitiateIEBrowser
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate cHTMLTemplate
objIE.ToolBar = 0
objIE.StatusBar = 0
' objIE.Width = 1500
' objIE.Height = 1500
objIE.Left = 0
objIE.Top = 0
Do While (objIE.Busy)
Wscript.Sleep 200
Loop
objIE.Document.Body.All.RptTitle.InnerHTML = "ERIC Dashboard as of " & strDayOfWeek & ", " & dtCurrentTime
objIE.Document.Body.All.RptRange.InnerHTML = "Date Range: " & dtStart & " - " & dtEnd
objIE.Document.Body.All.RptDB.InnerHTML = cUWDB
End Sub
|