Dec 1, 2006 #1 scottian Programmer Joined Jul 3, 2003 Messages 955 Location GB is there a way to have the text central in a message box? "My God! It's full of stars...
Dec 1, 2006 #2 Golom Programmer Joined Sep 1, 2003 Messages 5,595 Location CA As in "centered" ??? You can manually center the text before sending it to the message box Code: Dim TheMessage As String Dim PadSpaces As Long TheMessage = "Test String" PadSpaces = (100 - Len(TheMessage)) \ 2 TheMessage = Space(PadSpaces) & TheMessage & Space(PadSpaces) MsgBox TheMessage Upvote 0 Downvote
As in "centered" ??? You can manually center the text before sending it to the message box Code: Dim TheMessage As String Dim PadSpaces As Long TheMessage = "Test String" PadSpaces = (100 - Len(TheMessage)) \ 2 TheMessage = Space(PadSpaces) & TheMessage & Space(PadSpaces) MsgBox TheMessage