Category Archives: Cells and Range

Excel Extract Cell Comments

Excel VBA/Macro example below will extract comment from every cells with comment, and put the summary in the cell selected by user using Excel input box (read more about how to get cell reference using input box here). Sub CreateCommentsSummary() … Continue reading

Posted in Cells and Range | Tagged , , , , , | 542 Comments

Get Position of Last Column Containing Data with Excel VBA

If you read my latest update on how we can get position of last row containing data, then most probably you already have a glimpse on how we perform the same task with last column containing data in Excel. The … Continue reading

Posted in Cells and Range | Tagged , , , , , , , , | 1,146 Comments

Auto Format Excel Cells with Error Value

With the simple Excel macro below, we can make all cells in active Worksheet that contains Error value in it, like #NULL, #Div/0!, #VALUE!, #Ref, #NAME?, #NUM!, And #N/A, will automatically having cell format that different/stand out among all other … Continue reading

Posted in Cells and Range | Tagged , , , , , | 1,775 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 , , , , , , , | 1,066 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 , , , , , , , , , , | 1,640 Comments

Check If Excel Workbook is Already Open or Not

In my case, I work a lot with transferring data from current Excel Workbook to another Excel Workbook, and to be able to do that, of course I need to make sure whether the destination Workbook is already open or … Continue reading

Posted in Cells and Range | Tagged , | 1,095 Comments

How To Find Row Position of a Particular Text

Sometimes in Excel, we need to find the row position of a particular text, maybe to be able to paste certain of data right below the corresponding text or else. Very useful if we have an Excel Worksheet Template that … Continue reading

Posted in Cells and Range | Tagged , , , , , , , , , , , , , | 1,407 Comments