Hi -
This isn't quite what you are looking for - it puts the first line in bold - but you might find it useful. I got it may years ago off one of these boards, and it emulates a functionality Access to have prior to A2010.
Code:
Function FormattedMsgBox( _
prompt As String, _
Optional buttons As Variant = vbOKOnly, _
Optional title As String = "My Title", _
Optional HelpFile As Variant, _
Optional context As Variant) As Integer
Dim strMsg As String, quote As String
Dim sTemp As String
On Error GoTo Error_Proc
sTemp = strtran(prompt, """", """""")
quote = Chr(34)
If IsMissing(HelpFile) Or IsMissing(context) Then
strMsg = "msgbox(" & _
quote & sTemp & quote & _
", " & buttons & _
", " & quote & title & quote & _
")"
Else
strMsg = "msgbox(" & _
quote & sTemp & quote & _
", " & buttons & _
", " & quote & title & quote & _
", " & quote & HelpFile & quote & _
", " & context & _
")"
End If
FormattedMsgBox = Eval(strMsg)
Exit Function
Error_Proc:
' Code for error here
End Function
The resulting message has three lines, the first one being bold. You call it like this:
x = Formattedmsgbox("Line 1 bold@Line 2 normal@line 3 normal",VBYesNo,"Window title")
You can also put a help reference in, if you feel ambitious.
John