Using a backslash instead of a forward slash to divide two numbers in VBA will divide the numbers but will always return an integer solution.
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've combined each of our comprehensive wellsrPRO VBA training reference guides into a single bundle with over 150 tips and macros covering the 80 most important topics in VBA.
Tell me more
The Enterpad VBA is a physical product that lets you run macros in Excel and Word with the push of a button. It really can speed up your spreadsheet work!
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.
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.
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.
Use VBA to paste values in Excel instead of formulas. Bind this VBA macro to the Ctrl+Shift+V keyboard shortcut to make pasting values even faster.
Use VBA to find out who has your Excel file locked for editing. Save this macro to your spreadsheet and it will tell you when someone else has the file open.
In VBA, you can stop your macro execution manually with the Esc key or by pressing Ctrl+Break. Remember this the next time you need to exit an infinite loop.
subscribe via RSS
To access parts 2 and 3 of my free online VBA training program, enter your email address below.