Please enter your details here.
An object is composed of :
Private Procedure can be called from anywhere in the project
The value returned by InputBox is a string
What will be the output of the following code?
Sub LoopExample()
Dim StartNumber As Integer
Dim EndNumber As Integer
Dim Answer As Integer
Answer = 5
EndNumber = 5
For StartNumber = 1 To EndNumber
Answer = Answer + EndNumber
Next StartNumber
MsgBox Answer
End Sub
Which event, runs macros automatically in excel VBA while opening Workbook
Why Macro is used
To save a VBA project with an Excel workbook, the workbook must be saved as what type of file?
What data type can hold any type of data?
When the block of code finishes the execution, what will the final value of X be?
Public Sub Example ()
Dim Y As Integer
Dim X As Integer
X = 0
Y = 10
For Count = Y To 1 Step -2
X = X + Y
If Y = (Y = 1) Then
Exit For
End If
Next Count
X = X / X
MsgBox X
___________ statement enables us to trap runtime error.
There can be different data types of an element in an array
Which of the following arithmetic operations has the highest level of precedence?
What is the color of comments?
Which Case clause will be true whenever the value of the selector in a Select Case block is between 1 and 5 or is 8?
The _______________ control used to insert image to the form
__________ are the attributes of an object that control the object's appearance and behavior.
Which part of VBA window, refers to area where code is written.
To force all variables is a VBA project to be declared, which must be stated in a module?
Which character in VBA, indicates start of a comment
You have declared 4 variables
Which of these variable declarations is not a valid VBA statement?
This control is used for titles/captions
Given that x = 7, y = 2, and z = 4, the following If block will display “TRUE”. If (x > y) Or (y > z) Then txtBox.Text = “TRUE” End If
___________ indicates whether a particular condition is on or off
This operator reverses the truth value of an expression; making a true expression false and a false expression true.
A Combo box is loaded in the From_Initialize event with:
Combo1.AddItem “Red”
Combo1.AddItem “Blue”
Combo1.AddItem “Green”
Suppose you are designing an application for admissions to a college or university, and you need to decide how to provide the user with a selection of racial backgrounds. Which control would be most appropriate?
A single Case statement can contain multiple values
Which of the following statements is not true about user-defined functions?
What property of controls tells the order they receive the focus when the tab key is pressed during run time? it.
To break up long lines of code, the line continuation character in VBA is