PC Review


Reply
Thread Tools Rate Thread

Can warning messages be suppressed in Excel?

 
 
JonWestcot
Guest
Posts: n/a
 
      20th Nov 2008
Hi all:

I'm wondering if certain warning messages can be suppressed or kept from
displaying in the following situations:

1) I create a new worksheet, copy some data into it, then delete the
worksheet. When I execute the Delete statement, a warning comes up to
confirm the delete. I don't need the warning; the creation and copying and
deletion are all happening under the covers, so to speak, and the user
couldn't care less what I'm doing to "make the magic" happen.

2) When I'm saving a file and using the SaveAs command, if the file
already exists, I get a warning that it's going to overwrite it. If the old
one is overwritten, I don't care, and neither do my users. They're used to
seeing only the latest and greatest file in the directory. If they start to
see these warning messages, they're going to get cranky.

Any suggestions on ways to avoid these pesky popup prompts will be
greatly appreciated!

Thanks!

Jon


 
Reply With Quote
 
 
 
 
Mike
Guest
Posts: n/a
 
      20th Nov 2008
Application.DisplayAlerts = False
'delete**************
Application.DisplayAlerts = True

"JonWestcot" wrote:

> Hi all:
>
> I'm wondering if certain warning messages can be suppressed or kept from
> displaying in the following situations:
>
> 1) I create a new worksheet, copy some data into it, then delete the
> worksheet. When I execute the Delete statement, a warning comes up to
> confirm the delete. I don't need the warning; the creation and copying and
> deletion are all happening under the covers, so to speak, and the user
> couldn't care less what I'm doing to "make the magic" happen.
>
> 2) When I'm saving a file and using the SaveAs command, if the file
> already exists, I get a warning that it's going to overwrite it. If the old
> one is overwritten, I don't care, and neither do my users. They're used to
> seeing only the latest and greatest file in the directory. If they start to
> see these warning messages, they're going to get cranky.
>
> Any suggestions on ways to avoid these pesky popup prompts will be
> greatly appreciated!
>
> Thanks!
>
> Jon
>
>
>

 
Reply With Quote
 
Keith74
Guest
Posts: n/a
 
      20th Nov 2008
Try

Application.DisplayAlerts = false

might help, fraid i can't check at the moment, excel is busy
 
Reply With Quote
 
JonWestcot
Guest
Posts: n/a
 
      20th Nov 2008
Hi Mike:

Thanks! I looked through the Application object model but missed this
one. (Can't imagine how! It's not like there are very many methods and
properties from which to choose! <g>)

Jon

"Mike" <(E-Mail Removed)> wrote in message
news:464C3731-2E1C-4741-8F5E-(E-Mail Removed)...
> Application.DisplayAlerts = False
> 'delete**************
> Application.DisplayAlerts = True
>
> "JonWestcot" wrote:
>
> > Hi all:
> >
> > I'm wondering if certain warning messages can be suppressed or kept

from
> > displaying in the following situations:
> >
> > 1) I create a new worksheet, copy some data into it, then delete

the
> > worksheet. When I execute the Delete statement, a warning comes up to
> > confirm the delete. I don't need the warning; the creation and copying

and
> > deletion are all happening under the covers, so to speak, and the user
> > couldn't care less what I'm doing to "make the magic" happen.
> >
> > 2) When I'm saving a file and using the SaveAs command, if the file
> > already exists, I get a warning that it's going to overwrite it. If the

old
> > one is overwritten, I don't care, and neither do my users. They're used

to
> > seeing only the latest and greatest file in the directory. If they

start to
> > see these warning messages, they're going to get cranky.
> >
> > Any suggestions on ways to avoid these pesky popup prompts will be
> > greatly appreciated!
> >
> > Thanks!
> >
> > Jon
> >
> >
> >



 
Reply With Quote
 
JonWestcot
Guest
Posts: n/a
 
      20th Nov 2008
Hi Keith:

Thanks -- you and Mike are on the same wavelength.

The info is much appreciated!

Jon


"Keith74" <(E-Mail Removed)> wrote in message
news:1f70f240-648c-4bef-8f29-(E-Mail Removed)...
> Try
>
> Application.DisplayAlerts = false
>
> might help, fraid i can't check at the moment, excel is busy



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS EXCEL - To supress warning messages created by Anlysis ToolPak Niyaz Rasheed Microsoft Excel Programming 1 4th Dec 2007 12:58 PM
Can query messages be suppressed ro turned off =?Utf-8?B?cmljaA==?= Microsoft Access Queries 1 28th Sep 2007 07:52 PM
Suppressed 0's on the vertical axis in Excel '97 =?Utf-8?B?TGl0ZXJhbGdhcg==?= Microsoft Excel Charting 1 10th Jun 2005 12:33 PM
"Recipient List Suppressed" group not suppressed... Michael Microsoft Outlook Contacts 2 1st Jun 2004 10:21 PM
details suppressed, wont export to excel the subtotals alv Microsoft Access Reports 1 22nd Jan 2004 11:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:34 PM.