Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 24th, 2004, 08:34 AM
Authorized User
 
Join Date: Sep 2003
Location: Ipswich UK, , United Kingdom.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MattLeek
Default Delete Without Prompt

Hi,
  In a Spreadsheet i'm doing, i want a sheet to be deleted but i don't want there to be a prompt. Is there a way to remove the page without it asking if you're sure you want to?

Thanks

Matthew Leek
__________________
Thanks,
Matthew
Reply With Quote
  #2 (permalink)  
Old March 24th, 2004, 08:41 AM
Registered User
 
Join Date: Sep 2003
Location: Guildford, Surrrey, United Kingdom.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to RogerWaters
Default

The answer I think is to add the following line in the VB

Application.alerting = false

but remember to set set it back to true at the end of the macro

Regards
Roger

Roger Waters
Reply With Quote
  #3 (permalink)  
Old March 24th, 2004, 08:45 AM
Registered User
 
Join Date: Sep 2003
Location: Guildford, Surrrey, United Kingdom.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to RogerWaters
Default

sorry mis typed should be

Application.DisplayAlerts = False


Roger Waters
Reply With Quote
  #4 (permalink)  
Old March 24th, 2004, 10:04 AM
Authorized User
 
Join Date: Sep 2003
Location: Ipswich UK, , United Kingdom.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MattLeek
Default

Thanks for that it really helps!:)

Matthew Leek
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to delete file System.IO.Delete error maricar C# 13 March 14th, 2014 06:50 AM
php/mysql delete button and delete query dungey PHP Databases 17 April 11th, 2009 12:24 PM
Prompt to Save arholly Access 13 December 18th, 2006 06:32 PM
how to delete a row when click delete hyperlink naveenkumarg1 Pro JSP 1 August 16th, 2004 01:29 AM
CH12 p 404 delete prompt lanita BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 5 July 5th, 2004 05:43 AM



All times are GMT -4. The time now is 03:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.