Category Archives: Workbook and Worksheet

Finding Cell with Minimum/Maximum Value in Active Worksheet

Let say we want to find position of cell containing the minimum/maximum value in current/active Excel worksheet, and then after we found the cell, we will change the cell format to make it stand out before other cells. The logic … Continue reading

Posted in Excel VBA Function, Workbook and Worksheet | Tagged , , , , , , , , , , , , , , , , , , | 1,063 Comments

Automatically Protect/UnProtect All Worksheets

Tonight I want to automatically protect and unprotect all Microsoft Excel Worksheets in my Workbook with password, instead of doing it manually, I put these following Excel VBA macro code in my Workbook. Public Sub ProtectAllSheets() Dim objSheet As Worksheet … Continue reading

Posted in Workbook and Worksheet | Tagged , , , , , , , | 1,776 Comments

How To Hide an Excel Worksheet

Some time we want to hide a certain Excel Worksheet from view, and it’s a common practice to use select the Worksheet, go to menu Format > Sheet > Hide. Using the method explained above is right, but unfortunately, others … Continue reading

Posted in Workbook and Worksheet | Tagged , , , , , , , , , , , , , , , , , , , , , , , , | 1,855 Comments

Create New Excel Worksheet With VBA

The Excel VBA macro below will create a new Excel Worksheet called ‘RawData’ or we can use msgbox to ask for the Worksheet name if needed. If there is already a Worksheet called RawData, user will be ask whether they … Continue reading

Posted in Workbook and Worksheet | Tagged , , , , , , , , , , , , , , | 769 Comments