View Single Post
  #1 (permalink)  
Old September 6th, 2007, 02:00 AM
tsakumar20 tsakumar20 is offline
Registered User
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote