Please enter your details here.
To force all variables is a VBA project to be declared, which must be stated in a module?
32-bit Software/Applications can be installed on:
Do…Loop... Until code block is always executed once.
You have declared 4 variables
Which of these variable declarations is not a valid VBA statement?
The Properties window plays an important role in the development of Visual Basic Applications. It is mainly used
This control is used for titles/captions
To break up long lines of code, the line continuation character in VBA is
Given the following section of code, if a programmer called the GetAge() subroutine, what value would the message box display?
Private Sub GetAge()
Dim UserAge As String
UserAge = 10
UserAge = InputBox("Enter your age", "Get Age")
Call ShowAge
End Sub
Private Sub ShowAge()
Dim UserAge As Integer
UserAge = 0
MsgBox (UserAge)
___________ statement enables us to trap runtime error.
Study the screenshot below. What is the appropriate action to take when a workbook displays this message (Security Warning Macros have been disabled)?
What will be the output of the following statement?
txtBox.Text = FormatCurrency(1234.567)
When the form is first referenced in any manner by program,the triggered event is….
This operator reverses the truth value of an expression; making a true expression false and a false expression true.
To close a form named Form1, you can use:
What will the value of ThisVar be after the following lines of code execute?
Dim ThisVar As String Dim MyName = "John" ThisVar = MyName & "John"
___________ function is used to return a copy of a string without leading spaces.
What property of controls tells the order they receive the focus when the tab key is pressed during run time? it.
Which property determines whether a control is displayed to the user?
Why Macro is used
What is the color of comments?
Which of the following statement is not a looping statement in VBA?
There can be different data types of an element in an array
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
What do you need to select to set the developer mode?
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?
A single Case statement can contain multiple values
An object is composed of :
Which part of VBA window, refers to area where code is written.
Which character in VBA, indicates start of a comment
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?