Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
RiosPapa
 
Posts: n/a
Default Confirm Delete Message Disable

When I delete a sheet which has data I get the standared confirmation dialog
allowing me to delete or cancel. This is a problem because I would like to do
this from a remote VB pgrogam.

Is there a way to disable this dialog ?
  #2   Report Post  
Alan
 
Posts: n/a
Default

Try,

Application.DisplayAlerts = False
'Your code to do your thing
Application.DisplayAlerts = True

Regards,
Alan
"RiosPapa" wrote in message
...
When I delete a sheet which has data I get the standared confirmation
dialog
allowing me to delete or cancel. This is a problem because I would like to
do
this from a remote VB pgrogam.

Is there a way to disable this dialog ?



  #3   Report Post  
RiosPapa
 
Posts: n/a
Default

Yes this did the trick, thankyou for the timely and accurate support,
Have a great day

"Alan" wrote:

Try,

Application.DisplayAlerts = False
'Your code to do your thing
Application.DisplayAlerts = True

Regards,
Alan
"RiosPapa" wrote in message
...
When I delete a sheet which has data I get the standared confirmation
dialog
allowing me to delete or cancel. This is a problem because I would like to
do
this from a remote VB pgrogam.

Is there a way to disable this dialog ?




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
how do I delete a worksheet from my workbook DLee New Users to Excel 2 August 15th 05 09:59 PM
In a protected worksheet allow users to delete rows Jason Trivett Excel Worksheet Functions 1 July 12th 05 09:50 AM
Delete row depending on criteria adw223 Excel Discussion (Misc queries) 1 June 30th 05 12:55 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM
How to delete blank rows John Mansfield Excel Discussion (Misc queries) 3 April 27th 05 11:48 PM


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

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"