Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem with closing the excel application

Hi,
I have written a vb application that calls a macro in an excel file ,
i open the file containing the macro and call the macro on another
file which i open in the same application window,
now , the macro is called perfectly (xyz.xls!macro1)
but when i want to call the macro again , i must have closed the
instance of excel .
I am not able to close the excel application completely , there is
some File reservation error that pops up

i am using the xlapp.close and set xlapp=nothing to kill the excel ,

plez, some one provide help ,
is there any other methiod to use the macro in the excel file ,
for info sake , the macro is to insert a dummy record in any excel
file ,

thanks
hoping to get good responses

cheers
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default Problem with closing the excel application

make sure that you set any objects tied to the excel app
= nothing, such as workbooks, worksheets etc.

so after you closed all books and set the workbook etc
variables = nothing

xlApp.QUIT
set xlApp = Nothing

Patrick Molloy
Microsoft Excel MVP


-----Original Message-----
Hi,
I have written a vb application that calls a macro in an

excel file ,
i open the file containing the macro and call the macro

on another
file which i open in the same application window,
now , the macro is called perfectly (xyz.xls!macro1)
but when i want to call the macro again , i must have

closed the
instance of excel .
I am not able to close the excel application

completely , there is
some File reservation error that pops up

i am using the xlapp.close and set xlapp=nothing to kill

the excel ,

plez, some one provide help ,
is there any other methiod to use the macro in the excel

file ,
for info sake , the macro is to insert a dummy record in

any excel
file ,

thanks
hoping to get good responses

cheers
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application not closing with mouse click??? Faraz A. Qureshi Excel Discussion (Misc queries) 1 December 16th 09 02:08 PM
closing the application Tigger Excel Discussion (Misc queries) 1 September 24th 08 04:26 PM
Closing a workbook exits Excel Application DarS Excel Discussion (Misc queries) 2 September 27th 07 01:51 PM
Excel still running in task manager after closing the application Willem Excel Discussion (Misc queries) 0 December 5th 06 01:56 PM
Problem closing Excel David Excel Discussion (Misc queries) 2 January 29th 06 01:02 AM


All times are GMT +1. The time now is 01:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"