Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi All, I may be having a dumb day here, but.... I am getting the following error: "Cannot set HorizontalAlignment Property of the Range Class" from this code: Sub Test() With Range("G4") .Formula = "GP%" .HorizontalAlignment = xlHAlignCenter .Font.Bold = True End With End Sub It makes no difference whether I use 'xlHAlignCenter' or -4108 (the intrinsic value). G4 is not protected. Any help is much appreciated. Thanks, Alan. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unable to set the FormulaArrary property of the range class | Excel Worksheet Functions | |||
unable to set the formula array property of the range class | Excel Worksheet Functions | |||
Unable to set the NumberFormat Property of the Range Class - ERROR | Excel Programming | |||
Unable to set the Locked property of the range class | Excel Programming | |||
Unable to set the Locked Property of the Range Class | Excel Programming |