Use this VBA macro to count the files in a folder. This macro can return the number of total files in a folder or the number of files of a certain type.
Loop through files in a folder with this VBA macro. Use it anytime you need to check each file in a folder or when you want to list the files in a folder.
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 this VBA InputBox to mask passwords. This private InputBox was originally created by Daniel Klann many years ago, but I'll teach you how to use it.
Now your Excel users can select their own colors when running your macro! I'll show you how to show a Color Palette Dialog Box using VBA xlDialogEditColor.
Use VBA to export your Outlook Contacts to Excel. With VBA macros, you can choose which Outlook Address Book properties you want to export to 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.
Placing Application.Volatile at the top of your custom VBA function makes your function recalculate each time a calculation occurs in another cell.
Check if a value is in an array with this VBA function. Use it to look for a string in a string array, an integer in an integer array, and more.
Despite what others say, it is possible to change another cell with a VBA user-defined function. These UDFs put the results of the formula in a different cell.
Move your window to the left screen and maximize it with VBA. Placing your window in a consistent position is a must before using mouse control macros.
This macro opens a folder using VBA or shows the open window if the folder is already opened. Pass the macro a string with the folder you want to open.
subscribe via RSS
Join our free 90-day VBA Training Program and start building your reputation as an office innovator.