Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Alignment
Can anyone help?
Code please to align wording in a cell such as: For c = 1 to 1000 If cell Ec is greater than 0 the wording in cell Cc is aligned right, other wise wording in cell Cc is aligned left. Thanks in advance Ed English |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Alignment
One way:
Dim c As Long For c = 1 To 1000 Cells(c, 3).HorizontalAlignment = _ IIf(Cells(c, 5).Value 0, xlRight, xlLeft) Next c , ED wrote: Can anyone help? Code please to align wording in a cell such as: For c = 1 to 1000 If cell Ec is greater than 0 the wording in cell Cc is aligned right, other wise wording in cell Cc is aligned left. Thanks in advance Ed English |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Alignment
Works well.
Thank you, Ed English On Mon, 15 Aug 2005 15:50:18 -0600, JE McGimpsey wrote: One way: Dim c As Long For c = 1 To 1000 Cells(c, 3).HorizontalAlignment = _ IIf(Cells(c, 5).Value 0, xlRight, xlLeft) Next c , ED wrote: Can anyone help? Code please to align wording in a cell such as: For c = 1 to 1000 If cell Ec is greater than 0 the wording in cell Cc is aligned right, other wise wording in cell Cc is aligned left. Thanks in advance Ed English |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
In Cell alignment, how do I update the default vertical alignment | Setting up and Configuration of Excel | |||
Right Alignment | New Users to Excel | |||
Need some help with alignment | Excel Discussion (Misc queries) | |||
Alignment | Excel Programming | |||
Alignment | Excel Programming |