Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The file Count Large.xlsm has quantities sold for 1 0 0 0 products for each of 6 0 months, for a total of 6 0
The file Count Large.xlsm has quantities sold for products for each of
months, for a total of values. The following code courts the number
of these that are greater than Check how long it takes to do this by inserting
Timer functions appropriately in the code and displaying the clapsed time in a
message box.
Sub CountLarge
Dim cell As Range, nLarge As Long
For Each cell In RangeSales
If cell.Value Then nLarge nLarge
Next
MsgBox nLarge & cells in the Sales range have a quantity larger than
vbinformation
End Sub
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started