+ Reply to Thread
Results 1 to 5 of 5

Set custom Buttons on standard MsgBox using API

  1. #1
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Cool Set custom Buttons on standard MsgBox using API

    I am looking at changing the text on the buttons of a standard MsgBox.

    I found code here http://www.excely.com/excel-vba/chan...-buttons.shtml

    But I ran (& also stepped through) the code and the buttons still show as Yes and No.

    What I am doing wrong? (I am testing this on Windows 7 using Excel 2010 32 bits)
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Set custom Buttons on standard MsgBox using API

    Solved. I found code here and it works http://www.mrexcel.com/forum/excel-q...-question.html

    I haven't stopped to work out yet why this works and the first one didn't (This one involves a lot of code - I would have preferred to get the first version running).

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Set custom Buttons on standard MsgBox using API

    eugh I'd use a userform

  4. #4
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Set custom Buttons on standard MsgBox using API

    heh. same

    Still it's cool to see that you can do it this way if you want.

  5. #5
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Set custom Buttons on standard MsgBox using API

    I'd be interested if any forum genius could get the first version (see post #1) to work + make it Office 64 bit compatible + use Hungarian Notation for all variables. I'll rep anyone who can pull this challenge off


    In the meantime, I've been playing around with the alternative version (post #2). It is very clunky so I have cleaned it up slightly and made it easier to call (see below). Note that it won't be compatible with Macs (API calls) and it currently isn't compatible with Office 64 bit (I haven't converted the API yet).


    Please Login or Register  to view this content.
    Last edited by mc84excel; 06-25-2013 at 06:26 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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