View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
byggemandBob byggemandBob is offline
external usenet poster
 
Posts: 2
Default close excel with no selection

Hello, im using excel as a COM object in axapta to import data, when im done
I want to move the excel file into a folder called "IMPORTED"

but when I use:
application.DisplayAlerts(false); //dont prompt saving message
application.quit(); //quit app

I get a "Microsoft Visual Basic" run-time error '1004'

I need a way to close the file w/o any prompts cause I cant move the file as
its not closed by untill I press "END" on the debug box


PS:
The VB error is caused by a for /next that deletes special menues created to
print the excel file. The file itselfe comes from a different company so im
not much interested in fixing the vb error as its most likley only a error
outside their excelsetup (oooor something :P)