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 SUM_TWS() a = 0 lastrow = Cells(Rows.Count,
1).End(xlUp).Row - 1 For i = 7 To lastrow a = a + Cells(i, 5).Value
Next Cells(lastrow + 2, 1).Value = "The SUM of TWS is"
Cells(lastrow + 2, 5).Value = a End Sub
select
2,000
The program is incorrect-will not run
7,000
1,000
0
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply