S6 Collections With IF Start
S6 Collections With IF Start
With With…End With for Easier Methods to simplify writing & maintenance of code
Code Writing
Collections Looping Through Collections • How to efficiently loop through members of a
(Sheets, Ranges etc.) in One collection in one go.
Go • For example loop through many worksheets, cells
etc.
• Protect & Unprotect all sheets in one go
WenCaL
Blend
Voltage
Twistrr
Inkly
Sleops
Misty Wash
Kind Ape
Pet Feed
Right App
Mirrrr
Halotot
Flowrrr
Silvrr
Commuta
Rehire
Looping Through Collections (Sheets, Ranges etc.) in One Go
2 examples of using collections
Status as follows:
1. cell value is between 1 to 200 --> Good
2. cell value Is 0 status should be empty
3. cell value is greater than 200 --> Excellent
4. cell value is less than 0 --> Bad
Goto Statement to Change Program Flow
Copy B3 to C3 only if
B3 has a value #DIV/0!
Activity: Get the Number of Formulas on the Worksheet
For the used range on this sheet, use a macro to get the number of cells that have formulas in them
Place this value inside cell B6. Create a button and assign the macro to it.