Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Alignment
Posted incorrect question earier.
Try again 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
Sub Align()
Dim rng As Range, c As Range ' Set rng = Range("e1:e1000") For Each c In rng If c 0 Then c.Offset(0, -2).HorizontalAlignment = xlRight Else c.Offset(0, -2).HorizontalAlignment = xlLeft End If Next c End Sub HTH "ED" wrote: Posted incorrect question earier. Try again 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 Discussion (Misc queries) | |||
Alignment | Excel Programming |