+ Reply to Thread
Results 1 to 5 of 5

Custom MsgBox

  1. #1
    Registered User
    Join Date
    04-21-2017
    Location
    Melbourne
    MS-Off Ver
    2010
    Posts
    64

    Custom MsgBox

    Hi,

    currently I just have the generic message box that when running comes up with an OK button to press. Is it possible to customise this box with a logo?

    below is the line i'm using

    Please Login or Register  to view this content.
    TIA

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Custom MsgBox

    Hi

    It might be possible with some API functions and callbacks, but it would be easier to use a user form if it's really necessary just for a message box (assuming you don't want one of the native Msgbox icons).
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Custom MsgBox

    You could make one from a user form and use whatever images, labels, controls etc. that you want to.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  4. #4
    Registered User
    Join Date
    04-21-2017
    Location
    Melbourne
    MS-Off Ver
    2010
    Posts
    64

    Re: Custom MsgBox

    Great, thanks. So have worked out how to create the user form, can I replace the above code with;

    Please Login or Register  to view this content.
    This will just bring up a simple box with an OK button that you click

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Custom MsgBox

    You'll need to add an OK button and a textbox or label to hold the message text you want (I'll assume you already added the image you wanted). You can then do something like
    Please Login or Register  to view this content.
    and your OK button in the form just needs the line
    Please Login or Register  to view this content.
    in its click event.

+ 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. MsgBox with custom buttons
    By OpOrange in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-02-2015, 10:40 PM
  2. Macro to capture MsgBox prompt to a string variable but ignore the MsgBox
    By BuglerDobbs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2015, 10:56 AM
  3. Set custom Buttons on standard MsgBox using API
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-25-2013, 02:57 AM
  4. Custom buttons in a msgbox
    By treva26 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2007, 01:49 AM
  5. Custom Msgbox?
    By Stefi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-31-2006, 05:23 AM
  6. How Do I Get Custom Captions For MsgBox Buttons
    By Minitman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-20-2006, 12:10 AM
  7. [SOLVED] MsgBox - 1) custom text in title bar? - 2) icon change?
    By StargateFanFromWork in forum Excel General
    Replies: 4
    Last Post: 05-05-2005, 02: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