Get Run Time Error 13, Type Mismatch on the Application.Quit line

  • Thread starter Thread starter dancing
  • Start date Start date
D

dancing

Hi,

I am getting the run time error 13 type mismatch when I do an
application.quit line using the excel session lauched from windowns AT
command. (this functions work OK when I launch the excel normally).

I know AT is running under a special system account, just have no
ideas why it cause the problems.

Here is my code:

sub auto_open
msgbox "Hello World"
application.quit
end sub

here is how i start up the excel session from AT.
********************************************************
at 17:05 /interactive /every:W C:\run_Batches.bat
********************************************************

Here is run_Batches.bat
***********************************************************
set EXCEL_DIR=C:\Program Files\Microsoft Office\Office
SET PATH=%EXCEL_DIR%;%path%
set APP=C:\testing.xls
EXCEL.EXE /e %APP%
***********************************************************

Please help!
 
Back
Top