+ Reply to Thread
Results 1 to 5 of 5

Formatting a Message Box

  1. #1
    Registered User
    Join Date
    11-27-2013
    Location
    Leeds, England
    MS-Off Ver
    Excel 2010
    Posts
    41

    Formatting a Message Box

    I have error messages that appear if a user doesn't not complete set actions in a sheet. How can edit these i.e. make a single word bold or put a return (space) between lines.

    MsgBox "Your scoring of this call is incomplete, please recheck ensuring you have completed all the mandatory boxes for this type of call before re-submitting. (This data has not been moved to the Database)"

    I would like this to display like -

    Your scoring of the call is incomplete, please recheck ensuring you have completed all the mandatory boxes for this type of call before re-submitting.

    (This data has not been moved to the Database)

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Formatting a Message Box

    Hi, M4RSH,

    create a UserForm where you may do so (maybe use a Label for this). AFAIK itīs not possible to bold any word within a MsgBox.

    Cioa,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    11-27-2013
    Location
    Leeds, England
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Formatting a Message Box

    Is it possible to centre align ??

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Formatting a Message Box

    Hi, M4RSH,

    not by default. You could use vbTab and blanks for that
    Please Login or Register  to view this content.
    Ciao,
    Holger

  5. #5
    Registered User
    Join Date
    11-27-2013
    Location
    Leeds, England
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Formatting a Message Box

    I've got a few to work on but this will do the job.

    Thanks you....

+ 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. Adding formatting to a message box
    By dextras in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2009, 03:02 AM
  2. Pop-up message box macro after conditional formatting?
    By p3te2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2008, 07:39 AM
  3. Formatting a variable used in a message
    By akronpow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2007, 05:53 PM
  4. Formatting Message Boxes
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2007, 05:48 AM
  5. CDO.Message seems to remove formatting from Excel file
    By Rich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2006, 12:00 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