Error Code 800a0400
Contents |
- Expected Statement Perhaps instead of 'Expected Statement', 'missing character' would be a better error message. I have noticed with error 800A0400 how often the problem is microsoft vbscript compilation error 800a0400 expected statement at the beginning or the end of the line mentioned in the vbs error 800a0400 error message. Introduction to Code 800A0400 Error code 800A0400 is a generic message when you execute a VBScript. 1 1 microsoft vbscript compilation error expected statement A wild guess, you have missed a command at the beginning of a line. The Symptoms You Get The script does not execute as you had hoped. Instead you get vbscript compilation error expected end of statement a message box like this picture: The Cause of Error 800A0400 Your VBScript contain is missing a statement. This is a difficult error to track down. However, the good news is that I have three examples. Most likely you have placed a statement, which is not appropriate for the logic of your script. For example, extra brackets, or missing command. Note:
800a0400 Expected_statement 80
the clue 'Source: Microsoft VBScript compilation error'. My point is that 'compilation error' and not a 'runtime error', means this is a syntax error in your script. The Solution for Error: Expected statement The Windows Scripting Host gives us two useful clues, firstly, look on Line: 10, do count any remark or empty lines. Secondly, the Char: number 1, is useful in tracing the error. In this case there is something wrong with the Select statement. The line number, as is so often the case, is crucial to solving this error. The problem is that the whole line is gibberish to the VBScript engine. So take another look at each word, punctuation and see if you can spot a simple error. ‡ Example 1 of Error code: 800A0400Missing underscore at the end of the line 7: ' WSHname.vbs' Sample VBScript to check WSH Version' Author Guy Thomas http://computerperformance.co.uk/' Version 2.3 - September 2010 ' -------------------------------------------------------On Error Resume Next WScript.Echo "WSH Version: " & WScript.Version & " " & WScript.BuildVersion & vbcr & "File name: " WScript.ScriptName WScript.Quit SolutionMissing under
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question View Unanswered Questions View
Expected Statement End If
All Questions... C# questions Linux questions ASP.NET questions SQL questions VB.NET questions discussionsforums vbscript expected ')' All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and microsoft vbscript compilation error '800a0401' expected end of statement Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework http://www.computerperformance.co.uk/Logon/code/code_800A0400.htm Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics http://www.codeproject.com/Questions/1058072/Microsoft-VB-Script-Compilation-Error-Error-Code-A General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ Microsoft VB Script Compilation Error Error Code : 800A0400 Rate this: Please Sign up or sign in to vote. See more: VBScript Hello Guys, I am new to VB Script. I am using the below piece of code as a start but i am getting Error. Please help me
Posted 20-Nov-15 22:52pm satish ranjan356 Updated 20-Nov-15 23:22pm ppolymorphe65.7K v2 Add a Solution Comments ppolymorphe 21-Nov-15 5:22am Have you done most basic research on Google ? satish ranjan 21-Nov-15 5:24am Yes sir, i tried all possible ways to resolve it, but still i get the same Error. Please help me to resolve this Issue. satish ranjan 21-Nov-15 5:27am I Get Error as Expected statement at Line 1, still I am unable to figure out what is the Error ppolymorphe 21-Nov-15 5:36am The error message matters, you shouldhere for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company http://stackoverflow.com/questions/12601368/windows-script-host-error-when-script-run-in-command-prompt Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, http://www.mrexcel.com/forum/excel-questions/402715-code-error-800a0400-expected-statement.html just like you, helping each other. Join them; it only takes a minute: Sign up Windows Script Host Error when script run in command prompt up vote 0 down vote favorite I got the following error when vbscript compilation I ran a script at the command prompt: Windows Script Host Error -------------------------- Script : D:\viru\vbs\sample.vbs Line: 1 Char: 1 Error: Expected Statement Code : 800A0400 Source: Microsoft VBScript Compilation Error. What does it mean, and what can I do about it? vbscript share|improve this question edited Sep 27 '12 at 20:50 Pops♦ 14.5k21100135 asked Sep 26 '12 at 12:05 user1700132 61 2 Post your script. We have no idea what the script vbscript compilation error is trying to do. It sounds like your script probably has a syntax problem. –Andrew Sep 26 '12 at 14:20 Sounds like you have an error on line 1 of your code. You should probably post it... your code that is. –carny666 Sep 26 '12 at 15:45 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote Line 1 char 1. It looks like due to file encoding. Save your script file as UTF-8 Without Bom, ANSI or Unicode (Little Endian) encoded. share|improve this answer answered Sep 27 '12 at 0:20 Kul-Tigin 8,53511542 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged vbscript or ask your own question. asked 4 years ago viewed 1903 times active 1 year ago Related 2VBScript wont run - Error “Expected Statement”-1Error code 800A0401 while running VB script1vbs run command no output0Using vbscript to run elevated and wait for command to complete-4Expected Identifier Code Error when running script?0Windows script host error 800A004
Forums Excel Questions Code Error 800A0400 - Expected statement Results 1 to 1 of 1 Code Error 800A0400 - Expected statementThis is a discussion on Code Error 800A0400 - Expected statement within the Excel Questions forums, part of the Question Forums category; Hi All, Please could some one help me with the below error. I am running the below code and show ... LinkBack LinkBack URL About LinkBacks Bookmark & Share Digg this Thread!Add Thread to del.icio.usBookmark in TechnoratiTweet this thread Thread Tools Show Printable Version Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Jul 15th, 2009,05:21 AM #1 Mindrage Board Regular Join Date Jan 2009 Posts 133 Code Error 800A0400 - Expected statement Hi All, Please could some one help me with the below error. I am running the below code and show a error msg as - Script - C\:temp\f32'spc-lista.vbs Line:7 Char:1 Error: Expected statement Code: 800A0400 Source: Microsoft VBScript complication error below is a part of the script- 'wypelnia f-32 w SPC Call F32SPC Sub F32SPC If Not IsObject(application) Then Set SapGuiAuto = GetObject("SAPGUI") Set application = SapGuiAuto.GetScriptingEngine End If If Not IsObject(connection) Then Set connection = application.Children(0) End If If Not IsObject(session) Then Set session = connection.Children(0) End If If IsObject(WScript) Then WScript.ConnectObject session, "on" WScript.ConnectObject application, "on" End If Share Share this post on Digg Del.icio.us Technorati Twitter Reply With Quote « Previous Thread | Next Thread » Like this thread? Share it with others Like this thread? Share it with others Twitter Linked In Google Reddit StumbleUpon Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On [VIDEO] code is Off HTML code is On Trackbacks are On Pingbacks are On Refbacks are On Forum Rules -- vB4 Default Style -- Default Mobile Style Contact Us Ask Mr. Excel - Tips and Solutions for Excel Privacy Statement Terms of Service Top All times are GMT -4. The time now is 06:47 PM. Powered by vBulletin Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved. All contents Copyright 1998-2016 by MrExcel Consulting.