#1   Report Post  
A
 
Posts: n/a
Default skip alert msg

how can i run a macro skipping alert msg?
Tks

  #2   Report Post  
Jim Rech
 
Posts: n/a
Default

What alert message? If it's the security warning you get opening a workbook
having macros in it, that cannot be skipped with code. The user would have
to lower his security settings which is not recommended.

--
Jim Rech
Excel MVP
"A" wrote in message
...
| how can i run a macro skipping alert msg?
| Tks
|


  #3   Report Post  
Frans van Zelm
 
Posts: n/a
Default

Hi A,

Application.DisplayAlerts = False

skips messages like 'Delete sheet. Are you sure?' and performs the [OK]
action. It should be in each procedure where needed because it is not
a VB setting.

Frans

"A" wrote in message
...
how can i run a macro skipping alert msg?
Tks



  #4   Report Post  
Frans van Zelm
 
Posts: n/a
Default

Hi A,

Application.DisplayAlerts = False

skips messages like 'Delete sheet. Are you sure?' and performs the [OK]
action. It should be in each procedure where needed because it is not
a VB setting.

Frans

"A" wrote in message
...
how can i run a macro skipping alert msg?
Tks





  #5   Report Post  
 
Posts: n/a
Default

if you do turn alerts off, be sure to turn them back on
again. Alerts were put in as a safty feature. bad idea
just to turn them off and leave them off.
good in a macro when you know you are going to get an
alert and don't want to have to click ok. but always turn
alerts back on .
Application.DisplayAlerts = False
your code
Application.DisplayAlerts = True

-----Original Message-----
Hi A,

Application.DisplayAlerts = False

skips messages like 'Delete sheet. Are you sure?' and

performs the [OK]
action. It should be in each procedure where needed

because it is not
a VB setting.

Frans

"A" wrote in message
...
how can i run a macro skipping alert msg?
Tks



.



  #6   Report Post  
 
Posts: n/a
Default

if you do turn alerts off, be sure to turn them back on
again. Alerts were put in as a safty feature. bad idea
just to turn them off and leave them off.
good in a macro when you know you are going to get an
alert and don't want to have to click ok. but always turn
alerts back on .
Application.DisplayAlerts = False
your code
Application.DisplayAlerts = True

-----Original Message-----
Hi A,

Application.DisplayAlerts = False

skips messages like 'Delete sheet. Are you sure?' and

performs the [OK]
action. It should be in each procedure where needed

because it is not
a VB setting.

Frans

"A" wrote in message
...
how can i run a macro skipping alert msg?
Tks



.

  #7   Report Post  
Frans van Zelm
 
Posts: n/a
Default

Hi Anonymous,

As far as I know, Application.DisplayAlerts is ON by default for every new
procedure that you run. Even if some other procedure has set it OFF.
Called procedures inherit the setting of the parent.

The same goes for Application.ScreenUpdating = False but *not* for
Application.EnableEvents = False.

Frans


wrote in message
...
if you do turn alerts off, be sure to turn them back on
again. Alerts were put in as a safty feature. bad idea
just to turn them off and leave them off.
good in a macro when you know you are going to get an
alert and don't want to have to click ok. but always turn
alerts back on .
Application.DisplayAlerts = False
your code
Application.DisplayAlerts = True

-----Original Message-----
Hi A,

Application.DisplayAlerts = False

skips messages like 'Delete sheet. Are you sure?' and

performs the [OK]
action. It should be in each procedure where needed

because it is not
a VB setting.

Frans

"A" wrote in message
...
how can i run a macro skipping alert msg?
Tks



.



  #8   Report Post  
A
 
Posts: n/a
Default

Thank you very much!
It works!
A

"Frans van Zelm" escreveu:

Hi Anonymous,

As far as I know, Application.DisplayAlerts is ON by default for every new
procedure that you run. Even if some other procedure has set it OFF.
Called procedures inherit the setting of the parent.

The same goes for Application.ScreenUpdating = False but *not* for
Application.EnableEvents = False.

Frans


wrote in message
...
if you do turn alerts off, be sure to turn them back on
again. Alerts were put in as a safty feature. bad idea
just to turn them off and leave them off.
good in a macro when you know you are going to get an
alert and don't want to have to click ok. but always turn
alerts back on .
Application.DisplayAlerts = False
your code
Application.DisplayAlerts = True

-----Original Message-----
Hi A,

Application.DisplayAlerts = False

skips messages like 'Delete sheet. Are you sure?' and

performs the [OK]
action. It should be in each procedure where needed

because it is not
a VB setting.

Frans

"A" wrote in message
...
how can i run a macro skipping alert msg?
Tks



.




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
Skip blank cells in diagrams hlp Charts and Charting in Excel 9 February 24th 06 02:32 PM
how to skip the blank cells nayeemoddin Excel Discussion (Misc queries) 1 December 6th 04 07:07 AM


All times are GMT +1. The time now is 06:14 PM.

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"