Been struggling with this all evening.
I want to pass values to a Msgbox, and have some lines in bold font, and others in normal font.
I know if I type the 2 messages in in full, it works, but I want to pass the strings.
This is what it looks like:-
As you see the Bold bit is working, but I can't get "his is a normal message" to print
Code below
What am I doing wrong?
Thanks
Phil
I want to pass values to a Msgbox, and have some lines in bold font, and others in normal font.
I know if I type the 2 messages in in full, it works, but I want to pass the strings.
This is what it looks like:-
As you see the Bold bit is working, but I can't get "his is a normal message" to print
Code below
Code:
Option Compare Database Option Explicit Function TestBoldMsgBox() Dim MsgBold As String Dim MsgNormal As String MsgBold = "This is a Bold Message" MsgNormal = "This is a Normal Message" Debug.Print Eval("MsgBox ('" & MsgBold & vbNewLine _ & "@msgnormal@@', " & vbOKOnly & ", 'Testing Bold')") End Function
Thanks
Phil
Comment