+ Reply to Thread
Results 1 to 3 of 3

Message box with yes/no option in VBA

  1. #1
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    Message box with yes/no option in VBA

    This code throws an error due to it not recognizing MsgBoxStyle. How can I fix this? I realize that this returns a value.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Message box with yes/no option in VBA

    Either change MsgBoxStyle to VbMsgBoxStyle or remove it.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    Re: Message box with yes/no option in VBA

    Norie - Thank you. I also had to change YesNo to vbYesNo.
    Last edited by bvwalker1; 02-12-2019 at 05:50 PM.

+ 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] Message Box with save file option
    By namluke in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-15-2014, 11:11 AM
  2. [SOLVED] Message Box and Option Button in Excel
    By Building in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-24-2014, 01:03 PM
  3. Message box option buttons not working....
    By abordeau in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2014, 11:12 AM
  4. Pop up Message with option of OK and SNOOZE
    By mr_andreson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2014, 12:14 PM
  5. Display Message If no Option Button is Selected
    By z-eighty2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2013, 08:48 PM
  6. Option to Exit Macro Via Message Box
    By kirsty in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-12-2010, 11:05 AM
  7. cell message with option buttons
    By Rmagic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-18-2005, 01:55 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