+ Reply to Thread
Results 1 to 8 of 8

Are you sure you want to proceed dialog box

  1. #1
    Registered User
    Join Date
    01-10-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    77

    Are you sure you want to proceed dialog box

    I need an "Are you sure you want to proceed?" dialog box to pop up every time a run the macro below with the Yes and No commands.

    If Yes, macro runs. If No, macro doesn't run.


    Please Login or Register  to view this content.
    Please help!

    Thanks.

    SZ

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,158

    Re: Are you sure you want to proceed dialog box

    Hi SZ

    Try this:
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    01-10-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    77

    Re: Are you sure you want to proceed dialog box

    Thank you for your response!

    When I click the button, I do get a dialog box; however, when I press yes, the clear feature does not fulfill its purpose.

    Thanks again,

    SZ

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Are you sure you want to proceed dialog box

    Hi

    Try

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    05-06-2017
    Location
    Boston
    MS-Off Ver
    2013
    Posts
    3

    Re: Are you sure you want to proceed dialog box

    Option Explicit
    Sub RemoveConstants()
    Dim Answer As Variant
    Dim rConstants As Range
    Answer = MsgBox("Are you sure you want to proceed?", vbYesNo)
    If Answer = vbYes Then
    Set rConstants = Sheet1.Range("O10:ad109").SpecialCells(xlCellTypeConstants)
    rConstants.ClearContents
    End If
    End Sub

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,158

    Re: Are you sure you want to proceed dialog box

    @ willxue

    Nice catch on piece of code I omitted...Long day...
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-10-2016
    Location
    New York
    MS-Off Ver
    2010
    Posts
    77

    Re: Are you sure you want to proceed dialog box

    It works now..

    Thank you all!

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Are you sure you want to proceed dialog box

    Quote Originally Posted by sintek View Post
    @ willxue

    Nice catch on piece of code I omitted...Long day...
    Please Login or Register  to view this content.
    ...which I'd effectively caught with #4 and simplified further...

+ 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. how proceed sequence
    By mastaliyev in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2015, 09:14 AM
  2. Graph help please - I don't know how to proceed
    By taylora5 in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 06-05-2015, 06:40 AM
  3. [SOLVED] Formula that will show proceed or not proceed
    By geliedee in forum Excel General
    Replies: 7
    Last Post: 01-29-2015, 07:35 AM
  4. [SOLVED] After Error Message, I will not Proceed on the next TAB
    By Jarvin24 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2014, 01:22 PM
  5. not sure how to proceed
    By inoexcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2006, 07:34 PM
  6. best way to proceed
    By Gary Keramidas in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-05-2005, 01:05 PM
  7. proceed to the next column
    By emtelli in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2005, 05:25 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