Escolar Documentos
Profissional Documentos
Cultura Documentos
This function is useful for displaying information. The syntax for the MsgBox
function is
MsgBox (prompt, buttons, title)
Where prompt = the text Excel displays in the message box
Buttons =optional
Title =optional
1.Open Excel
2. Open VB editor i.e Alt + F11 key
3. Click Developer Insert Choose command button (form control)
4. Click New
5. Type as follows
Sub Button3_Click()
MsgBox "Hello", vbExclamation
End Sub
6. Rename the command button as necessary
7. Clcik the button and you will see :
9.
Fig. 1
Fig. 2
How to Insert Items in a ComboBox (in a worksheet)
5.
6. Click new
How to hide the strong acid or weak acid page i.e go back to main page
The code for the command button in the strong acid page is
frmStrongAcid.hide
and for the weak acid page
frmWeakAcid.hide