Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default how to avoid excel pop-up in macro

Hello,
i use a macro to divide an excel file in many files, and create and
delete some sheet.
This run many times.
All the times a file is saved overwriting an existing one i ask me
what to do; the same when the command say to delete a sheet.

there is a way to avoid this.
i need to run the macro and leave the pc make everything without
anybody present

thanks
franz
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default how to avoid excel pop-up in macro


Add the following statement before you start processing your files:

Application.DisplayAlerts = False

Although your alerts will come back on after the macro finishes running I
always add the following line at the end of the macro:

Application.DisplayAlerts = True

It keeps it tidy and who knows if it will become mandatory in some later
release of Excel.
--
Kevin Backmann


"Francesco Magagnino" wrote:

Hello,
i use a macro to divide an excel file in many files, and create and
delete some sheet.
This run many times.
All the times a file is saved overwriting an existing one i ask me
what to do; the same when the command say to delete a sheet.

there is a way to avoid this.
i need to run the macro and leave the pc make everything without
anybody present

thanks
franz

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default how to avoid excel pop-up in macro

hi,
at the start of your macro add this line...
application.displayalerts = false

then at the end of the macro, turn alerts back on...
application.displayalerts = true

regards
FSt1

"Francesco Magagnino" wrote:

Hello,
i use a macro to divide an excel file in many files, and create and
delete some sheet.
This run many times.
All the times a file is saved overwriting an existing one i ask me
what to do; the same when the command say to delete a sheet.

there is a way to avoid this.
i need to run the macro and leave the pc make everything without
anybody present

thanks
franz

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default how to avoid excel pop-up in macro

Thanks guys!!
but some are still coming out.. the one that say: "to permanently
delete the data press delete!"

why?

franz
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
avoid duplication in a column in excel S.G.Pillai Excel Discussion (Misc queries) 1 July 24th 06 03:53 PM
How do I avoid duplicating names in excel? Brian,WI Excel Worksheet Functions 1 June 15th 06 02:43 AM
How to avoid duplicates across multiple worsheets in excel? Lisa J Excel Discussion (Misc queries) 1 May 22nd 06 10:01 PM
How can avoid the security Macro message ... John B Excel Discussion (Misc queries) 1 March 29th 05 08:43 PM
how to avoid duplicates in excel workbook? smart Excel Discussion (Misc queries) 1 January 10th 05 03:42 PM


All times are GMT +1. The time now is 07:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"