If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Closing excel using macros

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-04, 06:54
bobfred bobfred is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
Closing excel using macros

Although i can close the active workbook using excel, i cant get excel to close itself completely.
Any help please?
Reply With Quote
  #2 (permalink)  
Old 02-04-04, 06:57
ben2001 ben2001 is offline
Registered User
 
Join Date: Jan 2004
Posts: 17
if you want it to close and save the workbook to the current location you could use this:
Sub Quit()
Application.Quit
ActiveWorkbook.Close SaveChanges:=True
End Sub
Reply With Quote
  #3 (permalink)  
Old 02-04-04, 07:00
bobfred bobfred is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
thanx v much, it works!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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