+ Reply to Thread
Results 1 to 4 of 4

MSGBOX not displaying, OK being automatically selected

  1. #1
    Forum Contributor
    Join Date
    12-18-2019
    Location
    chennai
    MS-Off Ver
    excel 2010
    Posts
    141

    MSGBOX not displaying, OK being automatically selected

    Please Login or Register  to view this content.
    W4.Text = ""
    W5.Text = ""
    W1.Enabled = True
    W1.SetFocus
    ElseIf ans = vbNo Then
    frmMV.ActiveControl.Value = frmAvg.AvgTxt.Value
    End If

    Else

    frmMV.ActiveControl.Value = frmAvg.AvgTxt.Value

    Exit Sub
    End If
    End If
    End Sub
    [/CODE]
    Last edited by ayyappan80; 12-31-2020 at 06:41 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,368

    Re: MSGBOX not displaying, OK being automatically selected

    Administrative Note:

    What is the question???


    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,419

    Re: MSGBOX not displaying, OK being automatically selected

    The msgbox will only display if the IF tests are true.

    Without know the contents of all the variables it's impossible to say.

    FYI, your actual msgbox command works fine, displaying Yes/No buttons with Yes automatically selected
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent SAC
    Posts
    8,885

    Re: MSGBOX not displaying, OK being automatically selected

    Rory

+ 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. [SOLVED] Pop up Msgbox displaying the time taken in macro
    By ashishmehra2010 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-19-2015, 06:04 AM
  2. [SOLVED] Msgbox not displaying when called
    By adam.hewitt5 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-09-2012, 10:47 AM
  3. Displaying an array as columns in a msgbox
    By carg1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2007, 10:38 AM
  4. msgbox displaying time passed since last save
    By Jedody in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2007, 01:10 AM
  5. Displaying an array or list in a MsgBox
    By erikhs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2007, 07:06 AM
  6. [SOLVED] Displaying A MsgBox for X Seconds
    By Mark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2005, 11:05 AM
  7. [SOLVED] MsgBox not displaying right away
    By Ray Kanner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2005, 10:06 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