The following Excel image has a VBA program (see below). What will be the result after the program is executed? Any cell

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

The following Excel image has a VBA program (see below). What will be the result after the program is executed? Any cell

Post by answerhappygod »

The following Excel image has a VBA program (see below). What
will be the result after the program is executed? Any cells not
displayed are currently empty, and any cells with numbers are
formatted numeric. Sub GDP() k = 0 finalrow = Cells(Rows.Count,
1).End(xlUp).Row For i = 7 To finalrow step 2 k = k + Cells(i,
2).Value Next Cells(finalrow + 2, 1).Value = "The SUM of GDP is"
Cells(finalrow + 2, 2).Value = k End Sub
30
50
40
The program is incorrect-will not run
60
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply