Ditto that. It documents itself. And it is far more readable when variables
are passed:
Sub Main()
' ugly confusing code:
NoHands
MyWarningSubroutine "Pay!", 8, "Yo!"
' vs sensible code:
Call NoHands
Call MyWarningSubroutine("Pay!", 9, "Yo!")
End Sub
Sub NoHands()
MsgBox "Attention", vbCritical
End Sub
Sub MyWarningSubroutine(Msg As String, _
WarningNo As Long, _
Caption As String)
MsgBox Msg & vbNewLine & vbNewLine & _
"This is warning #" & WarningNo, , Caption
End Sub