Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 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

Step: 1

Answer Variable Type1 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Accounting

Authors: Joe Ben Hoyle, Thomas Schaefer, Timothy Doupni

13th edition

1259444953, 978-1259444951

More Books

Students also viewed these Programming questions