hi,
i have the following code:-
Sub FormatRange() Application.ScreenUpdating = False
Dim LastRow As Long
LastRow = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Dim lCol As Long
lCol = ActiveSheet.UsedRange.Columns.Count
With Range(Cells(1, 1)...