Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I set the text alignment based on the cell value in the same manner
as Conditional Formatting? '======Conditional text formatting Range("F10:F30").Select Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _ Formula1:="=""TPG#""" Selection.FormatConditions(Selection.FormatConditi ons.Count).SetFirstPriority With Selection.FormatConditions(1).Font .Bold = True .Italic = True .TintAndShade = 0 End With '====== Its easy to do in an "IF" statement, but that only works when the macro is played. I need the cell to align left when "TPG" is found in the cell. Conditional formatting doesn't allow for alignment like it does for text formatting. -- Regards VBA.Noob.Confused XP Pro Office 2007 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
conditional formatting in text box | Excel Discussion (Misc queries) | |||
Conditional Formatting to Change Cell Alignment? | Excel Discussion (Misc queries) | |||
Conditional Formatting based on text within a cell w/ text AND num | Excel Worksheet Functions | |||
Formatting alignment - can I show text upside down? | Excel Discussion (Misc queries) | |||
Conditional Formatting based on Text within Text | Excel Discussion (Misc queries) |