How to Select Latest Date from Pivot Table using VBA in Microsoft Excel

If you are working on sales data that keeps on updating daily. To track the complete sales on the latest date entered in the data using pivot table. I...

Open multiple files at once

In this article, we will create a macro to open multiple files with a file dialog box. We have created the macro “opening_multiple_file” to open ...

Hide columns using a button

If you need to hide certain columns using a button, you can use this code.  It will even change the command button text to Hide Columns and then agai...

Inserting the path where the Workbook is saved to the title bar or the status bar using VBA in Microsoft Excel

The top line of the window is the Title bar. Use the available empty space to add metadata related to workbook. To add metadata, we will add ...

Reset filter before saving a worksheet using VBA in Microsoft Excel

Question: Reset all filter criteria in all worksheets when saving a workbook. Answer: Insert the following code in This Workbook module. Priva...

Creating, and using a Visual Basic Excel Combo/ Edit box

Tip sumitted by: Ben Sullins, Phoenix, AZ Using a visual basic combo/edit box is a somewhat advanced concept that, as you will find, can be very ...

Check if a VBProject is protected using VBA in Microsoft Excel

With the function below you can check if a VBProject is protected before you try to edit the project: Function ProtectedVBProject(ByVal wb As Workboo...

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.