#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default SendKeys

I am running a macro to Load data into a Data sheet and once it's in the
excel I want to delete the data sheet. When you delete a sheet message box
always comes up and makes sure its ok to delete. How can I delet these
sheets without having the macro stop to ask if its ok to delete the sheet.
Is there a special Sendkey function that will stop this message box from
coming up?

Thanks,

Will
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default SendKeys

Hi Wtadder,

Try:

Application.DisplayAlerts = False

' Your deletion code

Application.DisplayAlerts = True


---
Regards,
Norman



" wrote in
message ...
I am running a macro to Load data into a Data sheet and once it's in the
excel I want to delete the data sheet. When you delete a sheet message
box
always comes up and makes sure its ok to delete. How can I delet these
sheets without having the macro stop to ask if its ok to delete the sheet.
Is there a special Sendkey function that will stop this message box from
coming up?

Thanks,

Will



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
SendKeys in VBA John Excel Programming 1 June 24th 05 05:46 PM
Sendkeys Jim Excel Programming 1 April 16th 05 06:44 PM
SendKeys? CMK Excel Programming 2 February 23rd 05 12:03 AM
SendKeys Mike Excel Programming 2 July 2nd 04 12:47 AM
Sendkeys GB[_3_] Excel Programming 0 September 16th 03 10:39 PM


All times are GMT +1. The time now is 09:39 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"