Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 8th, 2004, 04:04 AM
Registered User
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Word VBA "Before Appliction.quit

Hello there, is it possible to place VBA code in an Event like "before Application.quit"
I want to execute VBA code (Kill a .ini) when the Word Application quits (Not the dokument close)
Many Thanks and regards

Holger
 
Old July 8th, 2004, 06:16 AM
Authorized User
 
Join Date: Jun 2003
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can either declare the Word application object WithEvents in a class module and then access the Quit event, or, inside your global Word VBA project you could use the inbuilt AutoExit procedure.

You would then place you code to kill the INI file in either of these.





Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA and MS Word Dolphin VB Components 1 February 25th, 2006 06:16 PM
word 2003 vba joukaniabhay VB How-To 0 February 15th, 2005 07:33 PM
Message Box in Web Appliction NiNe .NET Web Services 1 March 3rd, 2004 09:50 AM
Word VBA sdowen Excel VBA 4 December 3rd, 2003 04:32 PM
VBA Word gcookie79 Excel VBA 1 November 12th, 2003 01:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.