Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default File dosn't always close?

Using

Application.Close
Application.Quit

the file appears to still be open sometimes

any ideas?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default File dosn't always close?

Hi Karl

Application.Close

This will not close a workbook

If you use this for example the workbook will be closed without saving

ThisWorkbook.Close SaveChanges:=False
If you want to save change it to True



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Karl Treier" wrote in message ...
Using

Application.Close
Application.Quit

the file appears to still be open sometimes

any ideas?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 118
Default File dosn't always close?

Do you have an object set to the file or the application? If so, try using
your object references to close and quit, and then set the objects =
Nothing.

HTH
Ed

"Karl Treier" wrote in message
...
Using

Application.Close
Application.Quit

the file appears to still be open sometimes

any ideas?




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
Indirect.EXT download dosn't exist DontPanic Excel Worksheet Functions 3 January 9th 09 09:09 AM
MS querry dosn't work when importing from DB2 after upgrading to 2 Harding Excel Worksheet Functions 0 February 12th 08 01:33 PM
Everytime i close an excel file, it creates a new backup file p Excel Discussion (Misc queries) 3 November 22nd 07 08:13 AM
VBA - on a button event, open another closed file, post changes, close file Fio Excel Programming 0 March 1st 04 01:08 PM
Automate open file, update links, run macro, close and save file Geoff[_7_] Excel Programming 2 August 26th 03 10:13 PM


All times are GMT +1. The time now is 11:18 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"