MsgBox

  • Thread starter Thread starter Mischa
  • Start date Start date
M

Mischa

Hi,

How can you insert a enter in your MsgBox?

Fe.
---------------------------------------------------------------------------
MsgBox prompt:="Please note, there a no files in this directory."
"Please log off know, and restart the
application." _

, Title:="OOCL Extractor, release version 5.1", Buttons:=vbOKOnly +
vbExclamation
---------------------------------------------------------------------------

This wil not work, so what is the solution for this?


Thanks as always,
Mischa
 
Do you mean to wrap the message on multiple lines?

MsgBox prompt:="Please note, there a no files in this directory." & _
vbLf & _
"Please log off know, and restart the application.", _
Title:="OOCL Extractor, release version 5.1", _
Buttons:=vbOKOnly + vbExclamation


You could also use vbNewLine (instead of vbLf).
 
El Enter es un número entero compuesto por la suma de las constantes
(También enteras) VbCr + VbLf (Que significan Carry Return y Line Feed).
Así que el mensaje queda MsgBox "Primera línea" & VbCr + VbLf & "Segunda
línea"
 
Back
Top