Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to centre the contents in a range by using VBA. Could someone
please help. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Alan,
You can do by this code: Sub Centering() With Range("a1") .HorizontalAlignment = xlCenter .VerticalAlignment = xlCenter end With End sub Type your text in A1 then run that code -- Regards, Halim "AlanW" wrote: I would like to centre the contents in a range by using VBA. Could someone please help. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Centering text in right-side header block | Excel Discussion (Misc queries) | |||
Centering Text Not Working | Excel Programming | |||
Centering MsgBox text | Excel Programming | |||
Centering the text in a message box | Excel Programming | |||
Centering the text in a message box | Excel Programming |