Msgbox text properties & Spacing

  • Thread starter Thread starter rocket0612
  • Start date Start date
R

rocket0612

I have the following code


Code:
--------------------
NInoget:

Message1 = "Please input the National Insurance Number"
Title = "NATIONAL INSURANCE NUMBER"
NINO = InputBox(Message1, Title, Default)

Message2 = "The NI no you have entered is: " & NINO & " Please confirm this is correct before continuing"
rep = MsgBox(Message2, vbYesNoCancel, "NI No")
If rep = vbYes Then GoTo continue
If rep = vbNo Then GoTo NInoget
If rep = vbCancel Then End: MsgBox ("Operation cancelled")
--------------------


I would like to make BOLD "part" of the message in a message box. The
part is NINO in message2. Any iudeas how to do this?

Additonally, the part " Please confirm this is correct before
continuing" I would like on a new line.

thanks
 
rocket0612,

I would like to make BOLD "part" of the message in a message box. The
part is NINO in message2. Any iudeas how to do this?

As far as i know this is not possible, maybe you should consider to use a
userform instead.

Additonally, the part " Please confirm this is correct before
continuing" I would like on a new line.

Change the line to:
Message2 = "The NI no you have entered is: " & NINO & vbcr & " Please
confirm this is correct before continuing"

Grtz,
Rody


"rocket0612" <rocket0612.1yw5ez_1132650902.8054@ex
celforum-nospam.com> schreef in bericht
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

error - copy 4
inputbox 2
Automatic Protecting Question 2
Workbook_beforeclose +msgbox 1
Run a macro from a vbyesno Msg box response 3
Help with if elseif verification 2
MsgBox () - Put Numbers In?! 2
Case vbNo 5

Back
Top