To hide and unhide columns with VBA, use the Column object and its .Hidden property. Using VBA to hide and unhide columns can greatly enhance your user experience.
You can speed up the slow Worksheet.PageSetup object by disabling the Application.PrintCommunication property and exploring the Excel 4.0 PAGE.SETUP function.
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
Learn how to refresh Pivot Tables with VBA so they always contain the latest data. This tutorial teaches how to refresh both Pivot Tables and Pivot Caches.
This tutorial demonstrates how to create pivot tables with VBA and how to use macros to perform simple manipulations on their appearance and structure.
This tutorial shows you how to properly use the VBA DateAdd function to add and subtract dates based on certain time intervals like hours, days, and months.
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 describes the difference between the VBA ClearContents and the VBA Clear Methods and explains how to use them to clear cells in your own macros.
You should declare constants in VBA when you need a value defined and you know the value won't change. You declare constants using VBA Const and Public Const.
Check if optional parameters have been passed using the VBA IsMissing function and learn how to create your own flexible optional parameter checking functions.
This tutorial will help you understand the difference between passing variables with ByRef and ByVal in VBA (plus a little on variable scope and RAM).
This custom VBA function improves upon Excel's built-in CELL and INFO functions by returning information not available in the CELL and INFO functions.
subscribe via RSS
Join our free 90-day VBA Training Program and start building your reputation as an office innovator.