+ Reply to Thread
Results 1 to 3 of 3

Ask if details are correct?

Hybrid View

adam2308 Ask if details are correct? 04-12-2009, 01:47 PM
Leith Ross Re: Ask if details are... 04-12-2009, 02:41 PM
adam2308 Re: Ask if details are... 04-12-2009, 02:55 PM
  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    467

    Ask if details are correct?

    I want to add some to a macro have which asks before performing the rest of the macro... "Are all details correct?" with a yes and no button. yes, carries on with the macro and no ends the macro.

    Any advice on how best to do this?

    Thanks.
    Last edited by adam2308; 04-12-2009 at 02:55 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Ask if details are correct?

    Hello adam2308,

    Sub Macro1()
    
      Dim Answer As Integer
    
      'Your macro code
    
        Answer = MsgBox("Are all the details correct?", vbInformation + vbYesNo)
        If Answer = vbNo Then Exit Sub
    
       'Your macro code continues here
    
    End Sub
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    467

    Re: Ask if details are correct?

    thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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