PC Review


Reply
Thread Tools Rate Thread

Code to OK DeleteSheet automatically

 
 
Mikey
Guest
Posts: n/a
 
      20th Mar 2008
I have DeleteSheet code at the end of my macro and the box always pops asking
if I want to Delete the Sheet. What is code to make it automatically close
or = True?
--
Mickey
 
Reply With Quote
 
 
 
 
Tom Hutchins
Guest
Posts: n/a
 
      20th Mar 2008
Put Application.DisplayAlerts = False
before your DeleteSheet code and
Application.DisplayAlerts = True
after it.

Hope this helps,

Hutch

"Mikey" wrote:

> I have DeleteSheet code at the end of my macro and the box always pops asking
> if I want to Delete the Sheet. What is code to make it automatically close
> or = True?
> --
> Mickey

 
Reply With Quote
 
Mikey
Guest
Posts: n/a
 
      20th Mar 2008
Works perfectly. Thanks for the time.
--
Mickey


"Tom Hutchins" wrote:

> Put Application.DisplayAlerts = False
> before your DeleteSheet code and
> Application.DisplayAlerts = True
> after it.
>
> Hope this helps,
>
> Hutch
>
> "Mikey" wrote:
>
> > I have DeleteSheet code at the end of my macro and the box always pops asking
> > if I want to Delete the Sheet. What is code to make it automatically close
> > or = True?
> > --
> > Mickey

 
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
automatically add country code george Microsoft Outlook Contacts 3 15th Sep 2004 12:14 PM
How to get a usercontrol to automatically add code to the initialization code in a form... Simon Verona Microsoft VB .NET 21 30th Jun 2004 05:22 PM
how to code for automatically sorting ? Mebane Faber Microsoft Excel Programming 2 22nd Jun 2004 04:14 PM
Code to automatically overwrite? andycharger Microsoft Excel Programming 2 10th Feb 2004 09:44 AM
Begin code automatically Dave Microsoft Access Form Coding 2 3rd Dec 2003 05:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:16 AM.