Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All.....
I have a macro that opens a second workbook and does things with it and then I want to close it, but then I give it the following code, the macro stops, and I get a pop-up that asks "Do you want to save?".....No, I don't want to save and No, I don't want the pop-up to stop my macro operation.........how please can I close the other workbook without getting the pop-up? 'Close the q793Complete workbook Windows("q793Complete.xls").Activate ActiveWorkbook.Close TIA Vaya con Dios, Chuck, CABGx3 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, try something like this (Assuming that the workbook is the active
workbook): Application.DisplayAlerts = False ActiveWorkbook.Close SaveChanges:=False Application.DisplayAlerts = True HTH--Lonnie M. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Lonnie, that worked just great!!
Vaya con Dios, Chuck, CABGx3 "Lonnie M." wrote: Hi, try something like this (Assuming that the workbook is the active workbook): Application.DisplayAlerts = False ActiveWorkbook.Close SaveChanges:=False Application.DisplayAlerts = True HTH--Lonnie M. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why excel close all files when I just want to close one files | Excel Discussion (Misc queries) | |||
why do all excel worksheets/workbooks close when I close one? | Excel Discussion (Misc queries) | |||
close button does not close | Excel Discussion (Misc queries) | |||
Excel shoud not close all active books when clicking close button | Excel Discussion (Misc queries) | |||
excel - Windows close button (x) should only close active workboo. | Setting up and Configuration of Excel |