Thanks for the reply Bill.
I tried this:
xlBook.Worksheets(5).Range("b25..b27").cells.HorizontalAlignment = xlCenter
This, and other variations I've tried... does not work.
what should the correct syntax be?
thanks in advance,
bob.
"Bill" <bill@bpiconsulting.com> wrote in message
news:NL2df.7853$AS6.6211@newsread3.news.atl.earthlink.net...
> Exampe:
>
> cells(1,1) .HorizontalAlignment = xlRight
> cells(1,1).VerticalAlignment = xlRight
>
> Can use xlTop, xlBottom, xlRight, xlLeft
>
>
>
> "John 3:16" <bobmcc@tricoequipment.com> wrote in message
> news:Oomq8Ht5FHA.3388@TK2MSFTNGP11.phx.gbl...
>> Hello,
>>
>> I know that using
>> xlBook.Worksheets(5).Range("C25..B27").Font.Bold = True
>> will set the cell attribute for the given range to Bold.
>>
>> How do I set the alignment to "Center, left or right"
>>
>> thanks in advance,
>> bob mcclellan
>>
>
>
Bookmarks