+ Reply to Thread
Results 1 to 2 of 2

VBA Close Pop Up

  1. #1
    Registered User
    Join Date
    06-16-2021
    Location
    Paris
    MS-Off Ver
    2016
    Posts
    3

    VBA Close Pop Up

    Dear Community

    I use the following code

    Sheets("Temp").Select
    ActiveWindow.SelectedSheets.Delete

    At this stage a pop up asks the user to confirm the deletion.

    I intend to by pass this request or at least automatically validate the deletion in a delay of one second

    Could you please help to code it ?

    Best Regards

  2. #2
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: VBA Close Pop Up

    Do this around the deletion


    Application.DisplayAlerts = False 'switching off the alert button

    ActiveSheet.Delete

    Application.DisplayAlerts = True 'switching on the alert button
    If you find the suggestion or solution helpful, please consider adding reputation to the post.

+ 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. Need file to close automatically - and if posssible, after the close, folder be on screen
    By ILoveStMartin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2021, 08:49 PM
  2. [SOLVED] Issue with Open, copy, close Macro - when trying to close workbook Clipboard error
    By seanpcorbett1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-13-2016, 05:14 PM
  3. [SOLVED] Auto Close Msg Box after Time Period & Close Workbook
    By GJF36 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-24-2015, 10:25 AM
  4. how to close userform using commndbutton and set automatic close at certain time
    By fatinmunie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-23-2014, 12:51 PM
  5. [SOLVED] VBA Prompt to close PDF so file can be overwrtitten or close automatically
    By bdouglas1011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2014, 12:31 PM
  6. Disable close workbook but still force users to close thru command button
    By rathig in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2013, 07:29 AM
  7. Replies: 0
    Last Post: 06-10-2005, 01:05 PM

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