Link to home
Start Free TrialLog in
Avatar of eyes59
eyes59

asked on

No response for MsgBox

I would like the MsgBox in a vba module to run but I don't want to require the user to click on Okay I wrote coding to return to the empty field and change the border to bold red.    Which vb* can I use to have the messge appear BUT not require a response?








If cmbxErrSource.Value = "3" Then
             MsgBox "If the Source of Issue is HOME OFFICE this field is REQUIRED", vbOKOnly + vbInformation, "Required Field"
             Me.cmbxIssueDes.SetFocus
             Me.cmbxIssueDes.Dropdown
             Me!cmbxIssueDes.BorderColor = lngRed
             Me!cmbxIssueDes.ForeColor = lngRed
             Me!cmbxIssueDes.BackColor = lngWhite

Open in new window

Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Hello eyes59,

MsgBox *always* requires the user to clear it by clicking something.  If you want to show a message to the
user without waiting for the user to do something, then you will need to create your own form, which you
can make modeless if you want.

Regards,

Patrick
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial