473,395 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Error 800A03EE

1
Hi!
I'm new to VB Script but I need some help.
I ran a macro in Excel to copy a text file to a sheet. It worked fine

I then proceded to copy the macro to a script but wehn I try to run it I get the compilation Error 800A03EE

Script: D:\Scrip_tables.vbs
Line: 14
Char: 49
Error: Expected ')'
Code: 800A03EE
Source: Microsoft VBscript compilation error

My script looks like this:

Expand|Select|Wrap|Line Numbers
  1.  Set objExcel = CreateObject("Excel.application") 
  2. Set objWorkbook = objExcel.Workbooks.open("C:\Amen\Tables.xls")
  3.  
  4. Do Until objExcel.cells(intRow, 1).value = " "
  5.  
  6.     Set objExcel = CreateObject("Excel.application")
  7.     Set objWorkbook = objExcel.Workbooks.open("C:\Amen\Book1.xls")
  8.  
  9. 'Location of last row
  10. intRow = ActiveSheet.UsedRange.Row - 1 + ActiveSheet.UsedRange.Rows.Count
  11.  
  12.  
  13.  
  14. With ActiveSheet.QueryTables.Add(Connection:= _
  15. "TEXT;E:\AMENSOFT\pf\exadds.src-pf", Destination:=Range("A1"))
  16. .Name = "exadds.src-pf_4"
  17. .FieldNames = True
  18. .RowNumbers = False
  19. .FillAdjacentFormulas = False
  20. .PreserveFormatting = True
  21. .RefreshOnFileOpen = False
  22. .RefreshStyle = xlInsertDeleteCells
  23. .SavePassword = False
  24. .SaveData = True
  25. .AdjustColumnWidth = True
  26. .RefreshPeriod = 0
  27. .TextFilePromptOnRefresh = False
  28. .TextFilePlatform = 437
  29. .TextFileStartRow = 1
  30. .TextFileParseType = xlFixedWidth
  31. .TextFileTextQualifier = xlTextQualifierDoubleQuote
  32. .TextFileConsecutiveDelimiter = False
  33. .TextFileTabDelimiter = True
  34. .TextFileSemicolonDelimiter = False
  35. .TextFileCommaDelimiter = False
  36. .TextFileSpaceDelimiter = False
  37. .TextFileColumnDataTypes = Array(9, 1, 9, 1, 1, 1)
  38. .TextFileFixedColumnWidths = Array(11, 12, 5, 8, 4)
  39. .TextFileTrailingMinusNumbers = True
  40. .Refresh BackgroundQuery:=False
  41. End With
  42.  
  43. Loop
  44.  
Any help is greatly appreciated
Aug 12 '05 #1
1 4899
Please, If you have found a resolution, donīt hesitate to say to me.

I need a lot.

Thak you very mutch.
Nov 22 '05 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Tony | last post by:
Can anyone help me with this error? code start ____________________________________________ Microsoft VBScript compilation error '800a03ee' Expected ')' /example.asp, line 142 Private Function...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
0
by: delaney19 | last post by:
Hi im getting this error on line 5 where i start the sub, and i have no idea why so if anyone could help i would be very gratefull. Imports System Imports System.DirectoryServices Namespace...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
5
by: yashu0209 | last post by:
I have an error occurring when i try to compile the program and the error is: D:\Program Files\visual studio 6.0\MSDev98\MyProjects\GLEnabledView\GLNew.cpp(164) : error C2653: 'CGLEnabledView' :...
2
by: randa zaghdan | last post by:
Hi I have a problem with my program in vc 2008 When I compile it, the following errors are listed. I try to resolve it but no hope Does any one can help me ? thanks . Linking......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.