View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Bob Umlas, Excel MVP Bob Umlas, Excel MVP is offline
external usenet poster
 
Posts: 320
Default which is better?

I don't think there's a difference, but THIS would be better still:
With Range("A6:D6")
.Font.Bold = True
.HorizontalAlignment = xlCenter
End With

Bob Umlas
Excel MVP

"Gregor" wrote:

From a performance stand point, which of these is better:

Range("A6:D6").Font.Bold = True
Range("A6:D6").HorizontalAlignment = xlCenter

or

Range("6:6").Font.Bold = True
Range("6:6").HorizontalAlignment = xlCenter

(There will never be any data beyond column D).

I'm using 2007 but keeping the workbook in computability mode.


Thanks
-Gregor