LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Excel not quitting - How to avoid global reference?

Why not use CreateObject in all cases? Versus hijacking and quitting an
existing Excel instance.

In any case, for starters, try flipping:

Set xlapp = Nothing
xlapp.Quit

To

xlapp.Quit
Set xlapp = Nothing

You're trying to control an object variable which you have terminated from
memory.


Great comments. I'll try both suggestions.

Thanks for the help.


 
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
Global replace a reference to a worksheet dhstein Excel Discussion (Misc queries) 1 March 13th 09 12:04 AM
Need to avoid a circular reference... Denise Excel Worksheet Functions 1 April 1st 05 08:23 PM
How to Reference Global Variable for external application. ajcross123 Excel Programming 4 July 29th 04 11:18 PM
Quitting Excel without saving manishc[_2_] Excel Programming 1 November 16th 03 11:55 AM
Global file reference change Ronen Ben-Hai Excel Programming 3 November 3rd 03 06:49 PM


All times are GMT +1. The time now is 06:30 AM.

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

About Us

"It's about Microsoft Excel"