Use the VBA Dir function to check if a file exists. The VBA Dir function returns the name of a valid file, so you can use it to test whether a file exists.
Return the value in one range based on the relative position of a value in another range without the index, match or offset functions by using this Excel UDF.
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 tutorial shows you how to hide the border on your UserForm using VBA. A UserForm without a title bar and X button are far cleaner than normal UserForms.
Instead of using Data Validation, you can use VBA to allow only numbers in a cell or a range in Excel. Read on to learn how to restrict non-numeric characters.
You can programmatically enable trust access to the VBA project object model with this macro. Doing so allows you to add modules and write macros from a macro.
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.
This tutorial shows you how to pause your macro until a key is pressed by calling the GetAsyncKeyState function in VBA. Use it to detect any key stroke.
Learn how to restrict a VBA UserForm TextBox to numbers only using the VBA KeyPress event and KeyAscii argument. Negative numbers and decimals are also allowed.
The ShowModal VBA property controls how a UserForm behaves when displayed. UserForms can be shown as vbModal or vbModeless by setting the ShowModal property.
This tutorial shows you how to declare and initialize a VBA array of strings using the Split function. This array of strings solution is compact and efficient.
Extract a VBA substring from a string using the Mid function. VBA Mid accepts 3 arguments to define which substring you want to extract from your main string.
subscribe via RSS
To access parts 2 and 3 of my free online VBA training program, enter your email address below.