Question: 7 . Left ( ) is a string function in VBA. Option Explicit Dim answer As Integer, subb As Integer Dim Num 1 As Integer,
Left is a string function in VBA.
Option Explicit Dim answer As Integer, subb As Integer Dim Num As Integer, Num As Integer Private Sub AddValue Num Num RangeBValue Num Num answer answer answer MsgBox RangeBValue MsgBox value of cell b using range syntax is & RangebValue CellsValue "hello" MsgBox answer End Sub
Option Explicit means that
a All variables are to be declared
c The number of variables cannot exceed
b All variables are case sensitive
d Constants cannot be used
What is the content of cell B after the program finishes execution?
a
c
b
d
In the above code, CellsValue refers to the value of Excel cell a D c C b D d C
What is the value displayed in the last dialog box after the program finishes execution?
a
c HELLo
b Msg
d
Questions refer to the following the code
Dim MyString As String Sub Testing MyString "I went to School" MsgBox Length is & LenMyString string length MsgBox UCaseMyString to upper case MsgBox LCaseMyString to lower case MsgBox MyString string as is End Sub
If you run the above code, how many dialog boxes will be displayed?
a
c
b
d
The first dialog box will display a Length is c I WENT TO SCHOOL b I went to School d i went to school
The second dialog box will display
a Length is
c I WENT TO SCHOOL
b I went to School
d i went to school
The third dialog box will display
a Length is
c I WENT TO SCHOOL
b I went to School
d i went to school
The fourth dialog box will display
a Length is
c I WENT TO SCHOOL
b I went to School
d i went to school
The function UCasestring converts a string to
a Lower case
c color red
b Upper case
d color green
The function LCasestring converts a string to
a Lower case
c Integer
b Upper case
d Double
The variable Mystring is declared of type
a Double
c String
b Integer
d Currency
In the above code, the parts of the code in green color
a Run at the end
c Are colored for fun
b Run in the beginning
d Do not run because they are comments
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
