Looping Archives - Xelplus - Leila Gharani https://www.xelplus.com/tag/looping/ Bestselling Excel and Power BI Courses Wed, 01 Mar 2023 14:19:17 +0000 en-US hourly 1 https://www.xelplus.com/wp-content/uploads/2022/10/cropped-site-icon-32x32.png Looping Archives - Xelplus - Leila Gharani https://www.xelplus.com/tag/looping/ 32 32 How to Create a Custom Progress Bar in Excel with VBA https://www.xelplus.com/excel-vba-progress-bar/ Wed, 15 Apr 2020 09:00:00 +0000 https://www.xelplus.com/?p=11381 A progress bar is a great addition for Excel macros that take long to run. It gives your project a more professional touch. It's also quite easy to add. You can create your progress bar once and reuse it in your Excel VBA projects.

The post How to Create a Custom Progress Bar in Excel with VBA appeared first on Xelplus - Leila Gharani.

]]>
How to Sum Cells by Color in Excel https://www.xelplus.com/excel-sum-cells-by-color-vba/ Thu, 18 Jul 2019 09:00:00 +0000 https://www.xelplus.com/?p=12283 Use this Excel formula to sum cell values based on cell color. The formula is an Excel VBA function. Copy and paste the code in your files so you can sum values based on background cell color.

The post How to Sum Cells by Color in Excel appeared first on Xelplus - Leila Gharani.

]]>
Excel VBA: Loop Through Cells Inside the Used Range (For Each Collection Loop) https://www.xelplus.com/excel-vba-loop-cells-inside-used-range/ Sat, 05 Jan 2019 16:54:00 +0000 https://www.xelplus.com/?p=9251 Learn how to use the FOR EACH Collection Loop in Excel VBA. This way you can quickly loop inside a specific range, manipute the data or check for a condition. In this example we count the number of cells that contain formulas in the UsedRange.

The post Excel VBA: Loop Through Cells Inside the Used Range (For Each Collection Loop) appeared first on Xelplus - Leila Gharani.

]]>
Excel VBA IF THEN Statement (and a useful tip) https://www.xelplus.com/excel-vba-if-then-elseif-statement/ Thu, 23 Aug 2018 16:15:00 +0000 https://www.xelplus.com/?p=10044 Learn one of the most useful statements in VBA (or any programming language, really): If Then. Once you master If, Then, Else, Elseif and And, you will be able to write Excel macros that are dependent on multiple conditions.

The post Excel VBA IF THEN Statement (and a useful tip) appeared first on Xelplus - Leila Gharani.

]]>