VBscript Error - HTTP

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
jwmct
Newbie
Posts: 2
Joined: Fri May 21, 2004 6:18 pm

VBscript Error - HTTP

Post by jwmct » Fri May 21, 2004 6:55 pm

I have modified one of the VBscripts to run a Web page as shown below:

VBSTART
Dim IE

Sub CreateIE
Set IE = CreateObject("InternetExplorer.Application")
IE.visible = 1
End Sub

Sub Navigate(URL)
IE.navigate URL
End Sub

Sub WaitBusy
do while IE.Busy
loop
End Sub

Sub DestroyIE
IE.Quit
Set IE = Nothing
End Sub

VBEND

VBRun>CreateIE
VBRun>Navigate,http://www.mysite.com/admin/clients/email/auto_send.asp
VBRun>WaitBusy
VBRun>DestroyIE

-----------------------

I get the following error message:

Microsoft VBScript compilation error 1002
syntax error
Line 25, Column 5

------------------------

What's the problem?

Thanks

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri May 21, 2004 8:32 pm

I ran your script and had no problems. Win98SE, MSIE 6.0.2600, Macro Scheduler 7.2.050.

Perhaps look to remove any Trailing Space Characters?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts