Formatting a Cell/Row/Column in Excel VBA

Formatting a cell, row or column in excel is a very trivial job. I will show here, how it could be done in excel using VBA.

Suppose, we wish to format a cell. Following are the specifications
- Date
- Bold/Underline/Italics
- Font Size - 10, type- Gulim, Color-Red

Suppose we wish to repeat the same for number of cells, either we need to copy the property and apply it to the specific cell or format the cells individually. This is quite a hectic process. VBA comes handy here.





I have created a procedure for the same. Whenever we wish to copy this formatting, we need call this procedure with the cell range as argument.

On execution, we will obtain a Date value with all formatting in place.

Hope this helps in one way or the other.