Question: Option Explicit Dim answer As Integer, subb As Integer Dim Num1 As Integer, Num2 As Integer Private Sub AddValue() Num1 = 22 Num2 = 11
Option Explicit Dim answer As Integer, subb As Integer Dim Num1 As Integer, Num2 As Integer Private Sub AddValue() Num1 = 22 Num2 = 11 Range("B2").Value = Num1 + Num2 answer = 100 answer = answer + 1 MsgBox (Range("B2").Value) MsgBox ("value of cell b2 using range syntax is " & Range("b2").Value) Cells(5, 4).Value = "hello" MsgBox (answer) End Sub 18. Option Explicit means that
a. All variables are to be declared
c. The number of variables cannot exceed 100
b. All variables are case sensitive
d. Constants cannot be used 19. What is the content of cell B2 after the program finishes execution?
a. 22
c. 33
b. 11
d. 2 20. In the above code, Cells(5, 4).Value refers to the value of Excel cell a. D5 c. C1 b. D4 d. C4 21. What is the value displayed in the last dialog box after the program finishes execution?
a. 100
c. HELLo
b. Msg
d. 101
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
