Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try
Sub copystyle() If Range("j7").Style = "Percent" Then _ Range("k7").Style = "Percent" If Range("j8").Style = "Currency" Then _ Range("k8").Style = "Currency" End Sub "bsteg" wrote in message ... I want to conditionally change the number format of a cell. For example, if cell A1 = '%' , I want the format of the number in cell A2 to have a percentage format or if A1 = '$' I want the number in cell A2 to have a currency format. I understand how to use conditional formatting but I don't see how to change the number format, just the font, border or pattern. Thanks in advance. Brad |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional formatting of number format? | Excel Discussion (Misc queries) | |||
Conditional Formatting - Number Format | Excel Worksheet Functions | |||
conditional number format dependent on other cell | Excel Discussion (Misc queries) | |||
How to create a conditional format that changes the number format | Excel Discussion (Misc queries) | |||
Conditional format of minimum number | Excel Worksheet Functions |