Re: VBA - closing without saving changes
From: Don Guillett (donaldb_at_281.com)
Date: 04/21/04
- Next message: PeterBrinkrolf: "Re: Re: Using a "File-Open"-Window in a Excel Macro?"
- Previous message: Phil Hagema: "Re: Vision Objects as Controls?"
- In reply to: ajliaks: "VBA - closing without saving changes"
- Next in thread: Ron de Bruin: "Re: VBA - closing without saving changes"
- Reply: Ron de Bruin: "Re: VBA - closing without saving changes"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Apr 2004 15:16:58 -0500
try
ActiveWorkbook.Close saveD=true
OR
This example closes the workbook that contains the example code and discards
any changes to the workbook by setting the Saved property to True.
ThisWorkbook.Saved = True
ThisWorkbook.Close
-- Don Guillett SalesAid Software donaldb@281.com "ajliaks >" <<ajliaks.152wok@excelforum-nospam.com> wrote in message news:ajliaks.152wok@excelforum-nospam.com... > Hi, > > This is very simply! > > I am using the instruction > > ActiveWorkbook.Close > > to close file. > > I need the macro cloosing the active workbook without asking for saving > changes. I need closing without saving changes! > > How can I do? > > Thanks, > > > --- > Message posted from http://www.ExcelForum.com/ >
- Next message: PeterBrinkrolf: "Re: Re: Using a "File-Open"-Window in a Excel Macro?"
- Previous message: Phil Hagema: "Re: Vision Objects as Controls?"
- In reply to: ajliaks: "VBA - closing without saving changes"
- Next in thread: Ron de Bruin: "Re: VBA - closing without saving changes"
- Reply: Ron de Bruin: "Re: VBA - closing without saving changes"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|