+ Reply to Thread
Results 1 to 3 of 3

Macro Stops every time it deletes a sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    10-08-2008
    Location
    Hallandale
    Posts
    44

    Macro Stops every time it deletes a sheet

    I have a macro that that stops every time I’m trying to delete the sheet.
    I get this message

    “Data may exist in the sheet(s) selected for deletion. To permanently delete the data, prese Delete.”

    and I have to manually click “delete” to continue running the macro.
    How can I avoid this stop so that macro runs thru it without stops?
    Last edited by koklok; 10-15-2008 at 02:56 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Look at
    Application.DisplayAlerts
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    To expand on SHG's suggestion
    Application.DisplayAlerts = False
    'your code
    Application.DisplayAlerts= True
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro to Search, Copy/Paste onto New Sheet
    By JADownie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2008, 04:57 PM
  2. Macro inexplicably stops after Workbooks.Open
    By thinkfiat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2007, 09:22 AM
  3. copying various cells in ot different cells in a different sheet
    By MonkeyDeath in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-25-2007, 11:22 AM
  4. How can I get macro to recognize every time a number changes?
    By punter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2007, 01:28 PM
  5. Replies: 1
    Last Post: 06-28-2007, 10:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1