.
Also ... here is the edited code :
Option Explicit
Private Sub TestMsgBox()
Dim btnStyle As VbMsgBoxStyle
Dim resp As VbMsgBoxResult
Dim msg As String
'msg = Replace(Space(1024), " ", "M")
msg = ActiveSheet.TextBox1.Text
msg = "Number of characters = " & Len(msg) & vbCrLf & msg
'btnStyle = vbAbortRetryIgnore
btnStyle = Range("VbMsgBoxStyleSelectedValue")
resp = CustMsgBox.ShowMsgBox(msg, btnStyle, 144)
msg = CustMsgBox.ReturnVal_btnTxt(resp)
MsgBox "You clicked """ & msg & """"
End Sub
Sub Button1_Click()
TestMsgBox
End Sub
Nice job on your project ! Good addition to the Forum that others will find helpful.
Cheers.
Bookmarks