Replace the Nth occurrence of a substring in a string with this VBA UDF. Use it to replace the 2nd, 3rd, 4th or more instance of a string within another string.
Make Excel talk with Application.Speech.Speak VBA and discover how to change the voice, speed and volume with the sapi.dll Microsoft Speech Object Library.
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
This VBA function converts decimal times in Excel to words. 10.5 becomes 10 Minutes 30 Seconds. It can convert base times given in hours, minutes or seconds.
Use the VBA ShellExecute function to open a URL in the default browser. VBA ShellExecute is a better choice than opening each website in internet explorer.
The VBA Beep function lets you play a system beep sound whenever you like. VBA Beep usually comes through your speakers so make sure your volume is up.
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.
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.
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.
subscribe via RSS
To access parts 2 and 3 of my free online VBA training program, enter your email address below.