Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default application quit problem

I have a module that opens an itrnaet page and then is suppose to close
excel down without saving changes. The following code closes the workbook
but does not close the excel application, can anyone advise how I can get
excel to terminate ?

If uid < 0 Then
Set ie = CreateObject("Internetexplorer.Application")
ie.Visible = True
ie.navigate "inside.mysite.com\qbrowse\lizard\expenses.asp?uid =" &
uid

End If
Application.DisplayAlerts = False
Application.Quit

Thanks in anticipation

John


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default application quit problem

Generally this is the result of not releasing a reference. Also, it is
unclear what "Application" refers to in your code - but if it is a reference
to the excel application, you never release it in the code shown.

--
Regards,
Tom Ogilvy

"John" wrote in message
...
I have a module that opens an itrnaet page and then is suppose to close
excel down without saving changes. The following code closes the workbook
but does not close the excel application, can anyone advise how I can get
excel to terminate ?

If uid < 0 Then
Set ie = CreateObject("Internetexplorer.Application")
ie.Visible = True
ie.navigate "inside.mysite.com\qbrowse\lizard\expenses.asp?uid =" &
uid

End If
Application.DisplayAlerts = False
Application.Quit

Thanks in anticipation

John




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default application quit problem

After looking closer (i had a misperception about what you were doing),
perhaps all you need to do is add

set ie = nothing

at the end.

--
Regards,
Tom Ogilvy

"John" wrote in message
...
I have a module that opens an itrnaet page and then is suppose to close
excel down without saving changes. The following code closes the workbook
but does not close the excel application, can anyone advise how I can get
excel to terminate ?

If uid < 0 Then
Set ie = CreateObject("Internetexplorer.Application")
ie.Visible = True
ie.navigate "inside.mysite.com\qbrowse\lizard\expenses.asp?uid =" &
uid

End If
Application.DisplayAlerts = False
Application.Quit

Thanks in anticipation

John




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default application quit problem

Make sure that all objects are cleared, such as

Set ie = Nothing

Also make sure that all objects are properly qualified, and as a last
resort, remove any With ... End With blocks as these have been known to
cause a problem.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"John" wrote in message
...
I have a module that opens an itrnaet page and then is suppose to close
excel down without saving changes. The following code closes the workbook
but does not close the excel application, can anyone advise how I can get
excel to terminate ?

If uid < 0 Then
Set ie = CreateObject("Internetexplorer.Application")
ie.Visible = True
ie.navigate "inside.mysite.com\qbrowse\lizard\expenses.asp?uid =" &
uid

End If
Application.DisplayAlerts = False
Application.Quit

Thanks in anticipation

John




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
Excel application.quit in macro problem TimkenSteve New Users to Excel 3 August 17th 06 06:36 PM
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM
The old application.quit problem Hafeez Excel Programming 1 June 21st 04 10:53 AM
The old application.quit problem Don Guillett[_4_] Excel Programming 1 June 20th 04 03:08 PM
The old application.quit problem Tom Ogilvy Excel Programming 0 June 20th 04 02:56 PM


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