×

Looping

VBA Code To Highlight All Instances of Word/Phrase Within A Range

VBA Code To Highlight All Instances of Word/Phrase Within A Range

What This VBA Code Does Have you ever had to search through a large Excel spreadsheet to find specific text?...

Deleting Rows With VBA By Looping (Correctly)

Deleting Rows With VBA By Looping (Correctly)

Deleting Rows With For Each Loop Misses Rows When I first attempted to delete rows using VBA code I thought...

Turn Off AutoFit Column Width For All Pivot Tables

Turn Off AutoFit Column Width For All Pivot Tables

What This VBA Code Does If you live dangerously and have multiple Pivot Tables sporadically on a single sheet (I’ve...

Loop Through Every PivotTable With VBA

Loop Through Every PivotTable With VBA

What This VBA Code Does There may be times when you need to carry out a VBA automation on all...

Remove Page Breaks From All Open Spreadsheets

Remove Page Breaks From All Open Spreadsheets

What This VBA Code Does Ever get those annoying dotted lines on all your spreadsheets after viewing a print preview?...

VBA To Delete All Shapes On A Spreadsheet

VBA To Delete All Shapes On A Spreadsheet

What This VBA Code Does The following VBA code will provide you with a way to delete all shapes from...

A VBA For Loop In Reverse Order

A VBA For Loop In Reverse Order

What This VBA Code Does Looping is a great coding technique to condense the amount of VBA lines you write....

VBA Code To Loop Through Only Selected Excel Charts

VBA Code To Loop Through Only Selected Excel Charts

What This VBA Code Does The following VBA macro will show you how to loop through only chart objects that...

Find And Replace All With VBA In PowerPoint

Find And Replace All With VBA In PowerPoint

What This VBA Code Does This post is a follow-up article to Find And Replace With Excel VBA. The following...

Loop Through All Chart Sheets In An Excel Workbook

Loop Through All Chart Sheets In An Excel Workbook

What This VBA Code Does There are two types of Sheets within an Excel Workbook. Worksheets Chart Sheets The below...

Delete All Blank Worksheets In Your Excel Workbook With VBA

Delete All Blank Worksheets In Your Excel Workbook With VBA

What This VBA Code Does This is a great little snippet of code I often use whenever I am cleaning up...

Loop Through A Specific Control Type Within A VBA UserForm

Loop Through A Specific Control Type Within A VBA UserForm

What This VBA Code Does These VBA macro snippets will show you how to target and loop through specific controls...

Add New Worksheet Tabs With A Range Of Sheet Names

Add New Worksheet Tabs With A Range Of Sheet Names

What This VBA Code Does This VBA macro will take a list of sheet names within an Excel table and...

How To Repeat Tasks With Your VBA Code by Looping

How To Repeat Tasks With Your VBA Code by Looping

Your Complete Looping Guide Looping is extremely important when coding because it can shorten up the length of your code...

Loop An Input Box Until It Receives Correct or Valid Entry

Loop An Input Box Until It Receives Correct or Valid Entry

What This VBA Code Does This VBA code will show how to keep cycling through an input box prompt until...

Loop Through All Tables In Your Excel Workbook or Worksheet

Loop Through All Tables In Your Excel Workbook or Worksheet

What This Does If you have an Excel workbook or worksheet that houses a large number of tables and you...

Dynamically Change Every Pivot Table Data Source Range Inside A Workbook With This VBA Macro Code

Dynamically Change Every Pivot Table Data Source Range Inside A Workbook With This VBA Macro Code

What This Does This VBA code will allow you to instantly update all your Pivot Tables inside a workbook and...

Loop Through All Form Control Checkboxes On Excel Spreadsheet

Loop Through All Form Control Checkboxes On Excel Spreadsheet

What This VBA Code Does This code will loop through each of your Form Control checkboxes and let you 'do...

Loop Through Each Slide In Your Active PowerPoint Presentation

Loop Through Each Slide In Your Active PowerPoint Presentation

What This VBA Code Does Often times we want to make changes that affect every slide in the PowerPoint presentation....

Loop Through & Make Changes To All Excel Charts In The ActiveWorkbook

Loop Through & Make Changes To All Excel Charts In The ActiveWorkbook

What This VBA Code Does Keeping all your charts perfectly formatted can be extremely tedious work!  It's much easier to...

Loop Through All Currently Open Workbooks And Modify Them

Loop Through All Currently Open Workbooks And Modify Them

What This VBA Code Does This bit of VBA code shows you how to loop through all currently open Excel...

Loop Through All Worksheets In All Currently Open Workbooks

Loop Through All Worksheets In All Currently Open Workbooks

What This VBA Code Does This VBA macro code will cycle through each worksheet in every currently open Excel workbook...

VBA For Excel’s Form Control Combo Boxes

VBA For Excel’s Form Control Combo Boxes

You're VBA Combo Box Cheat Sheet In this post I am going to share everything I know about using VBA...

Loop Through All Excel Files In A Given Folder

Loop Through All Excel Files In A Given Folder

What This VBA Code Does This VBA macro will let you select a folder path and loop through each of...

Find All Instances With VBA

Find All Instances With VBA

What This VBA Code Does This VBA macro with let you specify a value and create an Excel range selection...

Loop Through Spreadsheet Option Buttons

Loop Through Spreadsheet Option Buttons

What This VBA Code Does Use can use this loop to figure out which one of your Option Buttons is...

Loop Through All Sheets and Worksheets in Excel File With VBA

Loop Through All Sheets and Worksheets in Excel File With VBA

What This VBA Code Does Need to do a task on every sheet or worksheet in your workbook?  Use one...