Please enter your details here.
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
What property of controls tells the order they receive the focus when the tab key is pressed during run time? it.
What will the value of ThisVar be after the following lines of code execute?
Dim ThisVar As String Dim MyName = "John" ThisVar = MyName & "John"
The _______________ statement first executes the statements and then tests the condition after each execution
This control is used for titles/captions
Basic Excel Object model as follows:
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
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?
To force all variables is a VBA project to be declared, which must be stated in a module?
VBA Code run by
You have declared 4 variables
Which of these variable declarations is not a valid VBA statement?
Which event, runs macros automatically in excel VBA while opening Workbook
Study the screenshot below. What is the appropriate action to take when a workbook displays this message (Security Warning Macros have been disabled)?
The _______________ control used to insert image to the form
Which character in VBA, indicates start of a comment
Why Macro is used
There can be different data types of an element in an array
Do…Loop... Until code block is always executed once.
What data type can hold any type of data?
A ______________ returns a value to the part of the program that called it.
_______________ is the function to compare 2 strings.
Which windows displays a list of all forms and modules making up your application.
Which property determines whether a control is displayed to the user?
32-bit Software/Applications can be installed on:
Which part of VBA window, refers to area where code is written.
___________ indicates whether a particular condition is on or off
What will be the output of the following statement?
txtBox.Text = FormatCurrency(1234.567)
Private Procedure can be called from anywhere in the project
Which of the following is default in VBA for data passing?
An object is composed of :