help in scripting excel2k3

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




I had this script that would open an Excel File, loop through it then close the file. It worked when I had ExcelXP installed on my machine, but now I can't get the script to work with Excel2k3. Here is the portion of the script that checks for excel. I am fairly confident that the other checks are working just fine. By the way client system is WinXPsp2. Any help would be appreciated.



If strExcelWorkBook = "" Then
WScript.Echo "No input file provided. Script execution terminated. Please make sure you provide a valid Excel file as input."
Else


' Check if necessary objects are installed by simply create an instance of each
Err.Clear
Set objExcel = WScript.CreateObject("Excel.Application")
If Err.Number = 0 Then
blnExcelInstalled = True
End If
Err.Clear
Set objPerson = CreateObject("CDO.Person")
If Err.Number = 0 Then
blnCDOInstalled = True
End If
Err.Clear
Set objExchangeServer = CreateObject("CDOEXM.ExchangeServer")
If Err.Number = 0 Then
blnCDOEXMInstalled = True
End If


' Check if required components are installed
If (blnExcelInstalled = False Or blnCDOInstalled = False Or blnCDOEXMInstalled = False) Then


' Display error message
WScript.Echo "One of the required components could not be started. Please make sure the machine is running the following software: " & _
strCRLF & " Microsoft Windows 2000 (or higher) Server or Professional" & _
strCRLF & " Microsoft Winodws 2000 (or higher) Administrative Tools (a separate install if running on Windows 2000 Professional)" & _
strCRLF & " Microsoft Exchange 2000 (or higher) System Manager" & _
strCRLF & " Microsoft Excel 2000 (or higher)"
Else
.




Relevant Pages

  • RE: AD-Users to contacts
    ... I've written a script that takes in input the data from a "well formatted" ... excel file that show the result of each creation. ... - Uppercase letters will be substituted whit lowercase letters ... users in formation from the old directory, the first part of the job). ...
    (microsoft.public.windows.server.scripting)
  • Re: AD-Users to contacts
    ... Hi SubnetJO! ... > I've written a script that takes in input the data from a "well formatted" ... > excel file that show the result of each creation. ... after you ave filled the input file with data (dumping ...
    (microsoft.public.windows.server.scripting)
  • Re: Multiple append in text files
    ... I have a script making an inventory in excel from hardwareinfo in about ... At every logon there is one hardware file and one software file created ... Or can i get the info from the excel file software.xls into ...
    (microsoft.public.scripting.vbscript)
  • Re: Script to update home folder
    ... > to" path for my users in AD. Do you know of a script that will read ... > information from an excel file and update the home folder path? ... Sample script that read data from file and creates users in AD based on ... which creates users based on the data which comes from excel file: ...
    (microsoft.public.win2000.active_directory)
  • vbscript and excel
    ... I am writing some vb script that is writing to an excel file. ... Set objExcel = CreateObject ...
    (microsoft.public.vb.syntax)