Premium Only Content

Excel VBA: Loop through cells inside the used range (For Each Collection Loop)
April 25, 2018 Excel VBA & Macros Tutorials
Get the complete course here: https://www.xelplus.com/course/excel-vba-excel-macros/
In this video we do a mini project where we count the number of cells that contain formulas on our worksheet. We do this with Excel VBA with the help of the For Each Collection loop.
This allows us to loop through each cell inside the used range of the worksheet and check with the help of the IF statement whether or not we come across a formula cell. Here we use the HasFormula property of the range object. We then use a variable to keep this number in memory.
★★ Links to related videos: ★★
Copy/Paste in Excel VBA: https://youtu.be/p4ViTxIl0E0
Referencing Ranges with VBA: https://youtu.be/acGJb9Oojho
Learn about Visual Basic Editor: https://youtu.be/NpvvwrdDcQk
Recording macros: https://youtu.be/8IreWUk1Al4
Properties & methods in VBA: https://youtu.be/uYHrzo2gzbo
★ My Online Excel Courses ★
Courses â–º https://courses.xelplus.com/
✉ Subscribe & get my TOP 10 Excel formulas e-book for free
https://www.xelplus.com/free-ebook/
EXCEL RESOURCES I Recommend: https://www.xelplus.com/resources/
Get Office 365: https://microsoft.msafflnk.net/15OEg
Microsoft Surface: https://microsoft.msafflnk.net/c/1327040/451518/7593
GEAR
Camera: https://amzn.to/2FLiFho
Screen recorder: http://techsmith.pxf.io/c/1252781/347799/5161
Microphone: https://amzn.to/2DVKstA
Lights: http://amzn.to/2eJKg1U
Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
#ExcelVBA
-
2:58:32
Slightly Offensive
12 hours ago $77.51 earnedHas Trump FAILED US? The ABSOLUTE STATE of The Right Wing | Guest: Nick Fuentes
109K117 -
1:37:05
AlaskanBallistics
8 hours ago $1.98 earnedI Love This Gun PodCast #16
32.8K3 -
2:59:26
Twins Pod
16 hours agoEMERGENCY PODCAST WITH ANDREW TATE! - Twins Pod - Special Episode - Andrew Tate
175K177 -
2:52:01
Jewels Jones Live ®
2 days agoTRUMP SECURES BORDER | A Political Rendezvous - Ep. 113
91K36 -
25:02
marcushouse
1 day ago $45.91 earnedStarship Just Exploded 💥 What Went Wrong This Time?!
182K82 -
12:00
Silver Dragons
1 day agoBullion Dealer Reveals Best Silver to Buy With $1,000
115K11 -
12:58
NinjaGamblers
20 hours ago $15.91 earnedIs This The BEST Way to Win At Roulette? 😲
152K13 -
1:01:54
CharLee Simons Presents Do Not Talk
3 days agoCALIFORNIA'S DONE!
103K43 -
7:33
MudandMunitions
1 day agoUnboxing My FIRST Revolver! Smith & Wesson 442 .38 Special and What’s Coming Next for the Channel
130K16 -
1:01:05
Trumpet Daily
1 day ago $14.12 earnedGermany Started Two World Wars and Now Wants Nuclear Weapons - Trumpet Daily | Mar. 7, 2025
103K92