Use GetOpenFilename to browse for and import a filename with VBA. GetOpenFilename is part of the Application object in Excel and lets you store file paths without opening them.
Use the Application.InputBox dialog box to prompt for VBA user input. Input boxes are the easiest way to interact with a user in VBA, although other options are available.
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
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.
Fade your VBA UserForm in and out with the macros in this tutorial. You will also learn how to force your userform to appear partially transparent.
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.
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.
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.
subscribe via RSS
Join our free 90-day VBA Training Program and start building your reputation as an office innovator.