error when executing compiled code w/ VBscript

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
usernamechan
Newbie
Posts: 10
Joined: Wed Apr 18, 2007 5:51 pm

error when executing compiled code w/ VBscript

Post by usernamechan » Fri Apr 20, 2007 4:07 pm

The VBScript below runs fine before compilation. After compilation, the dot exe file gives me an error.


VBSTART

Sub AlertMessage (msg)

MsgBox msg

End Sub

VBEND


VBRun>AlertMessage,Some Message
________
herbalaire
Last edited by usernamechan on Tue Feb 01, 2011 12:25 pm, edited 1 time in total.

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Fri Apr 20, 2007 5:28 pm

Works for me. What error message are you getting?

usernamechan
Newbie
Posts: 10
Joined: Wed Apr 18, 2007 5:51 pm

Post by usernamechan » Tue Apr 24, 2007 7:18 pm

I have a longer script that executes fine after compilation. After I added the MsgBox VBscript code, the script compiles, but wouldn't run.

I get "someFileName.exe has encountered a problem and needs to close. We are sorry for the inconvenience."

....Please tell Microsoft about this problem....

Any ideas?
________
Mercury Meteor

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