Tuesday, June 8, 2010

Msgbox - Interaction Function

Display the user information as a dialog box message
Syntax
MsgBox(prompt, buttons, title, helpfile, context)
Code
Dim MyVal
MyVal = “Welcome To all”
Msgbox MyVal

InputBox -Interaction Functions

The InputBox function displays a dialog box containing a label. The data you expect from the users, an OK button
Syntax
InputBox(prompt,title,default,xpos, ypos, helpfile, context)
Code
Dim MyInput
MyInput = InputBox("Window Description", "Window Title - InputBox Function ", " Enter Ur Name", 50, 60, "Enter String Value", 20)
'(or)
MyInput = InputBox("Enter Ur Name")
MsgBox MyInput