Results 1 to 4 of 4

MsgBox problem

Threaded View

  1. #1
    Registered User
    Join Date
    05-10-2014
    MS-Off Ver
    Excel 2003
    Posts
    3

    MsgBox problem

    Hi all, I am new to the forum and have some basic knowledge of Excel and VBA. I am trying to run macro that has a MsgBox that will stop the macro if No is selected. I am getting all kinds of errors. I have tried to alter it but not getting the response i want.

    This is where i am up to so far:

    Dim iresponse As Integer
        iresponse = MsgBox("Is data ok, and is it ok to continue?", vbYesNo + vbQuestion + vbDefaultButton1, "Data Curruption!")
        Select Case iresponse
            Case vbNo
                Dim response
                response = MsgBox("Are you sure you want to stop program?", vbYesNo + vbQuestion + vbDefaultButton1, "Data Curruption!?")
                If MsgBox = vbYes Then
                Exit Sub
                ElseIf MsgBox = vbNo Then
                End If
    Many thanks!
    Last edited by DavidBre; 05-10-2014 at 05:35 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Problem with VBA Editor uses lower case on some lines (ex. msgbox instead of MsgBox)
    By stubbsj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2013, 06:59 PM
  2. Problem in msgbox
    By girishkini in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2013, 02:27 AM
  3. msgBox problem
    By bernie1961 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2008, 08:53 AM
  4. [SOLVED] Problem with Msgbox Code
    By Old Dog in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2005, 09:20 PM
  5. MsgBox problem
    By plockey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2005, 02:31 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