Could you help me please?
I want to make message box for validating surveys.
the message box contain the message because error of stuffing.
I want my message box keep showing, so i can click the sheets which contain error of stuffing without closing the message box.
So, the message box will guide me to fix the error in that sheets
This is my previous code:
Private Sub CommandButton1_Click()
Dim error As String error = “”
If (vehicle = True) And (gasoline_month = 0) Then
error = error & “- the expenditure of gasoline should not be empty” & Chr(10)
End If
If error = “” Then msgbox “clean”, vbInformation Else MsgBox error, vbCritical
End Sub
Thank you, I hope anyone can help me,, (sorry for my bad english)
答案 0 :(得分:0)
Hi it is not possible with msgbox in VBA , you have to use userform for achieve this.
Add a userform in and place buttons as you need and try.
if you stuck somewhere do let us know.