+ Reply to Thread
Results 1 to 6 of 6

Centered text in msgbox?

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    3

    Centered text in msgbox?

    Hi,

    I am trying to put text in a message box that is centered above the button in the box rather than having it align left. Is there a way to do this?

    Thanks!

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

    Re: Centered text in msgbox?

    Hi, dstark,

    AFAIK no, maybe use a UserForm instead.

    Ciao,
    Holger

  3. #3
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Centered text in msgbox?

    Not really or I dont think so, you will need to play with the string. Like adding spaces

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  4. #4
    Registered User
    Join Date
    08-27-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Centered text in msgbox?

    Thanks Mike!

    That will do the trick although it is a shame that there isnt a better way. It does solve my problem though.

    Thanks!
    -Devin

  5. #5
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Centered text in msgbox?

    the really shame is that such code works
    Please Login or Register  to view this content.
    and this does not
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  6. #6
    Registered User
    Join Date
    08-27-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Centered text in msgbox?

    Quote Originally Posted by mike7952 View Post
    Not really or I dont think so, you will need to play with the string. Like adding spaces

    Please Login or Register  to view this content.
    Hi Mike,

    This is what I did using your suggestion. It works just fine.

    Thanks again!
    -Devin


    Please Login or Register  to view this content.

+ 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