Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Tot = 0 LastRow = Cells(Rows.Count, 1).End(|Up).Row For i = LastRow To 4 Step -1 If Cells(i, 1) Value = Matthew Then Rows(i).Delete Else Tot

Tot = 0

LastRow = Cells(Rows.Count, 1).End(|Up).Row

For i = LastRow To 4 Step -1

If Cells(i, 1) Value = "Matthew" Then

Rows(i).Delete

Else

Tot = Tot + Cells(i, 3).Value

End if

Next i

MsgBox "The final result is " & Tot., " 2200*

End Sub

image text in transcribed
image text in transcribed
image text in transcribed
\begin{tabular}{|l|l|r|r|r|} \hline & \multicolumn{1}{|c|}{ A } & \multicolumn{1}{c|}{ B } & \multicolumn{1}{c|}{ C } & D \\ \hline 1 & Total Widgets & Sold (TWS) & - 1st & Quarter \\ \hline 2 & & & & \\ \hline 3 & Name & January & February & March \\ \hline 4 & Abe & 10 & 100 & 1,000 \\ \hline 5 & Bells & 10 & 100 & 1,000 \\ \hline 6 & Charles & 10 & 100 & 1,000 \\ \hline 7 & & & & \\ \hline 8 & David & 10 & 100 & 1,000 \\ \hline 9 & Frank & 10 & 100 & 1,000 \\ \hline 10 & & & & \\ \hline 11 & Harold & 10 & 100 & 1,000 \\ \hline 12 & lan & 10 & 100 & 1,000 \\ \hline 13 & Jared & 10 & 100 & 1,000 \\ \hline 14 & Lila & 10 & 100 & 1,000 \\ \hline 15 & Matthew & 10 & 100 & 1,000 \\ \hline 16 & Total & 100 & 1,000 & 10,000 \\ \hline \end{tabular} Sub TWSO Tot =0 LastRow = Cells(Rows.Count, 1).End(x|Up).Row For i= LastRow To 4 Step 1 If Cells (i,1).Value = "Matthew" Then Rows(i).Delete Else Tot = Tot + Cells(i, 3).Value End If Nexti MsgBox "The final result is " \& Tot,," 2200 " End Sub MsgBox "The final result is " \& Tot, , "2200" End Sub \begin{tabular}{|l|} \hline 1,900 \\ 1,700 \\ 1,800 \\ 160 \\ 170 \\ \hline \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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_2

Step: 3

blur-text-image_3

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

8. Describe the main retirement benefits.pg 87

Answered: 1 week ago

Question

4. What will the team agreement contain?

Answered: 1 week ago

Question

What were the issues and solutions proposed by each team?

Answered: 1 week ago