Page 1 of 1

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

Posted: Fri May 20, 2022 2:58 pm
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