PC Review


Reply
Thread Tools Rate Thread

Application screenupdating not working for everything?

 
 
Kai Smith
Guest
Posts: n/a
 
      1st Sep 2007
Hi guys

I have a VBA program which copies a sheet tab multiple times then
deletes the original tab (the template tab).

I've got Application.ScreenUpdating set to false, but I still get this
error when the code reaches the deletion stage:
"The selected sheet(s) will be permanently deleted.
* To delete the selected sheets, click OK.
* To cancel the deletion, click Cancel."

Is there any way I can get rid of this as it's damn annoying when trying
to automate everything and I have to click this 30+ times.

Thanks

Kai

 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      1st Sep 2007
try
application.displayalerts=false

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Kai Smith" <(E-Mail Removed)> wrote in message
news:toeCi.1$(E-Mail Removed)...
> Hi guys
>
> I have a VBA program which copies a sheet tab multiple times then deletes
> the original tab (the template tab).
>
> I've got Application.ScreenUpdating set to false, but I still get this
> error when the code reaches the deletion stage:
> "The selected sheet(s) will be permanently deleted.
> * To delete the selected sheets, click OK.
> * To cancel the deletion, click Cancel."
>
> Is there any way I can get rid of this as it's damn annoying when trying
> to automate everything and I have to click this 30+ times.
>
> Thanks
>
> Kai
>


 
Reply With Quote
 
Kai Smith
Guest
Posts: n/a
 
      1st Sep 2007
Fantastic!

Thanks very much Don, works a charm.

Regards

"Don Guillett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed):

> try
> application.displayalerts=false
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "Kai Smith" <(E-Mail Removed)> wrote in message
> news:toeCi.1$(E-Mail Removed)...
>
> > Hi guys
> >
> > I have a VBA program which copies a sheet tab multiple times then

> deletes
> > the original tab (the template tab).
> >
> > I've got Application.ScreenUpdating set to false, but I still get this
> > error when the code reaches the deletion stage:
> > "The selected sheet(s) will be permanently deleted.
> > * To delete the selected sheets, click OK.
> > * To cancel the deletion, click Cancel."
> >
> > Is there any way I can get rid of this as it's damn annoying when

> trying
> > to automate everything and I have to click this 30+ times.
> >
> > Thanks
> >
> > Kai
> >


 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      1st Sep 2007

glad to help
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Kai Smith" <(E-Mail Removed)> wrote in message
newsTfCi.11$(E-Mail Removed)...
> Fantastic!
>
> Thanks very much Don, works a charm.
>
> Regards
>
> "Don Guillett" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed):
>
>> try
>> application.displayalerts=false
>>
>> --
>> Don Guillett
>> Microsoft MVP Excel
>> SalesAid Software
>> (E-Mail Removed)
>> "Kai Smith" <(E-Mail Removed)> wrote in message
>> news:toeCi.1$(E-Mail Removed)...
>>
>> > Hi guys
>> >
>> > I have a VBA program which copies a sheet tab multiple times then

>> deletes
>> > the original tab (the template tab).
>> >
>> > I've got Application.ScreenUpdating set to false, but I still get this
>> > error when the code reaches the deletion stage:
>> > "The selected sheet(s) will be permanently deleted.
>> > * To delete the selected sheets, click OK.
>> > * To cancel the deletion, click Cancel."
>> >
>> > Is there any way I can get rid of this as it's damn annoying when

>> trying
>> > to automate everything and I have to click this 30+ times.
>> >
>> > Thanks
>> >
>> > Kai
>> >

>


 
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
application.screenupdating = false not working =?Utf-8?B?U2FicmU=?= Microsoft Excel Programming 11 13th Apr 2007 07:46 PM
Application.ScreenUpdating = False Not Working =?Utf-8?B?U2hlbGx5?= Microsoft Excel Programming 3 28th Mar 2007 01:53 AM
Screen still changes. Why ? (Application.Screenupdating = False not working Coza Microsoft Excel Programming 1 21st Mar 2007 03:47 AM
'Application.ScreenUpdating = False' isn't working Dan R. Microsoft Excel Programming 6 2nd Mar 2007 01:10 AM
ActiveWorkbook.Application.ScreenUpdating = False Not Working DoctorV Microsoft Excel Discussion 1 25th Aug 2004 08:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:09 PM.