Each VBA Tutorial contains macro examples to help you learn VBA code quickly. Follow these VBA tutorials to learn basic and advanced Excel macro programming.
In VBA, you concatenate strings into a single string using the &, or ampersand, operator. Simply add an ampersand between your strings to combine them into one string.
Use VBA to compare two lists and show the values in the first column that are missing from the second column. This is a simple way to compare two lists in Excel.
We've combined each of our comprehensive wellsrPRO VBA training reference guides into a single bundle with over 200 tips and macros covering the 125 most important topics in VBA.
This macro will reverse the order of an array using Excel VBA. Use it if you have an array sorted smallest to largest and you want it largest to smallest.
We just added a 6th cheat sheet to our training bundle. With our new guide on VBA UserForms, our bundle now has over 200 tips like how to automate data extraction from text files, how to remove duplicates from an array, and how to dynamically populate a listbox.
The VBA quicksort macro is a fast way to sort VBA arrays. VBA quicksort is more efficient than bubble sort, so it can be used to sort arrays of all sizes.
Use this VBA bubble sort macro to sort small VBA arrays. The VBA bubble sort is good for sorting small arrays, but it's a slow algorithm for large arrays.
Take the absolute value of a number with the VBA Abs function. The VBA Abs function will return the absolute value of a number or variable in your macro.
This VBA tutorial shows you how to take the square root of a number in VBA using the Sqr function. The VBA Sqr function will return the square root of a number.