In this VBA tutorial, I show you two ways to remove duplicates from an array. The first method uses the scripting dictionary and the second uses collections.
To comment a block of lines in VBA, click View, Toolbars, and check the box beside Edit. New buttons for Comment Block and Uncomment Block will appear.
We've combined each of our comprehensive wellsrPRO VBA training reference guides into a single bundle with over 180 tips and macros covering the 100 most important topics in VBA.
Tell me more
Use the VBA Application.StatusBar Property to display progress updates when your macro is running. The StatusBar progress updater is easy to implement.
Use VBA MacroOptions to add a description for your user-defined functions. These descriptions will appear with your UDF in the Excel Function Wizard dialog box.
Combine PDFs with VBA using this macro. The simplicity of this tutorial illustrates how easy it is to use Adobe Acrobat to merge PDF files in Word and Excel.
Use Excel to record your mouse clicks and cursor movements and convert them directly into VBA macros so you can easily automate complex tasks, like copying data from a website.
Return the position of an element in an array with this function from the VBA code library. This UDF is a great tool to have when working with arrays.
Discover how easy it is to assign a range to an array using Excel VBA. You will also learn how to avoid common errors, like run-time error 13 type mismatch.
Make your macros stand out by creating this beautiful VBA Progress Bar to illustrate the progress. This tutorial walks you through how to make the UserForm.
Use this VBA function to convert a column number to a letter. This is useful if you need to build a range and you want to do so with the A1 notation.
Delete blank rows in Excel with this VBA macro. There are dozens of way to delete blank rows in Excel. The macro in this tutorial is a fast way to do it.
subscribe via RSS
Grab a copy of our VBA Developer's Kit and start writing better macros in half the time.