Declare a variable of the appropriate type (a Long variable) to contain the user's choice : Long « Data Type « VBA / Excel / Access / Word






Declare a variable of the appropriate type (a Long variable) to contain the user's choice

 
Sub dec()
    Dim lngResponse As Long
    lngResponse = MsgBox("Do you want to create the daily report?", _
        vbYesNo + vbQuestion, "Create Daily Report")
End Sub
 

 








Related examples in the same category

1.Integer and Long