Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 921
Default macro closing worksheet

I have a macro which opens and closes a worksheet.
Problem: when the worksheet is closed by the macro, it prompts me "Do you
want to save".

Is there anyway to get rid of this? There are a lot of opening and closing
worksheets, so this is kind of annoying.

Thanks for your help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default macro closing worksheet

Application.DisplayAlerts = False

and reset after.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jeff" wrote in message
...
I have a macro which opens and closes a worksheet.
Problem: when the worksheet is closed by the macro, it prompts me "Do you
want to save".

Is there anyway to get rid of this? There are a lot of opening and

closing
worksheets, so this is kind of annoying.

Thanks for your help



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
need a macro select all cells in a worksheet? MarkN Excel Discussion (Misc queries) 0 June 23rd 06 12:47 AM
worksheet function vs macro [email protected] Excel Discussion (Misc queries) 2 June 13th 06 02:54 AM
2 windows for workbook - Macro switches worksheet Hari Excel Discussion (Misc queries) 1 June 12th 06 11:20 PM
Macro wiping out worksheet Traci Excel Worksheet Functions 1 May 19th 06 12:17 AM
Executing macro for all worksheet from a different worksheet Biti New Users to Excel 3 December 8th 04 10:05 AM


All times are GMT +1. The time now is 03:06 AM.

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"