Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am right-aligning text in a cell using VSTO with this statement:
((Excel.Range)rngBackGround.Cells[7,4]).HorizontalAlignment = -4152; In VBA, it's xlRight, not -4152. I have discovered left justification is 1, centered is -4108; What do I need to include and reference to be able to say something like: System.Constants.Alignment.xlRight, rather than -4152? -- Bob Sullentrup |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
In Cell alignment, how do I update the default vertical alignment | Setting up and Configuration of Excel | |||
enumeration members | Excel Worksheet Functions | |||
VSTO and Excel--End Cell Edit Mode? | Excel Programming | |||
Finding the last nonblank cell in a column in VBA or VSTO | Excel Programming | |||
Enumeration | Excel Programming |