Question: AVBA marco has been created to workwith some values in cells A2 to A4 in the following worksheet. 60 20 30 The code of

AVBA marco has been created to workwith some values in cells A2

AVBA marco has been created to workwith some values in cells A2 to A4 in the following worksheet. 60 20 30 The code of the macro is shown below. Sub DoSomething() Dim Vara As Dim VarB As Dim Count As Integer Variable Type 1 Variable Type 2 VarB = e For Count = 2 To 4 Set Vara = Cells(Count, 1) VarB = VarB + VarA.Value Next Count VarB = VarB/ 3 MsgBox "The result is & VarB End Sub The macro will produce this message box: Microsoft Excel The result is 36.6666666666667 What should be the variable types of the two variables, VarA and VarB? You need to write the answers clearly in the boxes below. You only need to write the variable type in each answer. Variable Type 1 (i.e. VarA's Type) is Variable Tvne 2 ie VarR's Tvnelis

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To determine the variable types for VarA and VarB lets ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!