Category Archives: Workbook and Worksheet

How to Get a Full File Path in Excel?

Ever needed to find out the full path of your current file? What I mean by full path here is the full location of the active file including the directory path and full file name. If you did, then what … Continue reading

Posted in Excel Formula, Excel VBA Function, Workbook and Worksheet | Tagged , , | 34 Comments

Schedules to Refresh Data Automatically using VBA Macro

I once asked by Joshuacht about how to make a macro running every 15 minutes. Let say because every 15 minutes we have to refresh or reload the data in the Workbook. Below is a sample of how we can … Continue reading

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

Excel VBA Add Set of Worksheets Automatically

There is a time when we must create a set of Excel Worksheets templates on a regular basis in our work. For example, a set of Excel Worksheet for each month of the year or may be based on the … Continue reading

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

VBA Delete Excel Rows Based on Certain Date

Let say I have a bunch of formatted data in my Excel sheet, and in Column A I have a dates. Then I wanna filter all the data base on certain date, for example 1 Jan 2009, and delete all … Continue reading

Posted in Cells and Range, Workbook and Worksheet | Tagged , , , , , , , | 85 Comments

Number of Cells/Rows/Columns With Formula

A few weeks ago I received this question from someone called LS: Hi I want to write a macro that counts the following – Number of cells with formula – Number of Rows with formula – Number of Columns with … Continue reading

Posted in Cells and Range, Workbook and Worksheet | Tagged , , , , , , , , , , | 64 Comments

Automatically Run an Excel Macro

Auto run macro excel… Do you want to run an excel macros automatically when the file is open or close? Microsoft Excel provide us the opportunity to run a macro automatically every time we open or close the excel workbook file, using … Continue reading

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

Convert Excel Column Number into Column Name

Update: Sorter version of the VBA function: Function Number2Char(c As Integer) As String Number2Char = Split(Cells(1, c).Address, “$”)(1) End Function Courtesy of The Plaid Cow. OR Function Number2Char(ByVal vNumber) Dim addr As String If vNumber 256 Then Exit Function addr … Continue reading

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