trip_to_tokyo
re: msgbox width
The Demo sub works for me, as written, and displays the single character "a"
To enable a wider msgbox in all code in a single project (not all projects), something like the following should work.
Note that that the constant "MBcaption" is padded with 15 spaces and
is declared at the top of a standard module (not a worksheet module).
MBcaption is used for the caption in all message boxes.
If you need different text in other message boxes, you can declare additional constants.
Personally, I just pad the text or the caption with spaces if I want additional width in a msgbox.
'---
Option Explicit
Public Const MBcaption As String = "ThisHour is:- "
Sub ThisIsWorkingForMe()
Dim ThisHour As Integer
ThisHour = 9
MsgBox ThisHour, vbOKOnly, MBcaption
End Sub
'---
Jim Cone