Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
Am having touble changing the ticklable number format based on the contents of a cell(ie P for percent, N for number) using the change event. Here is what I have. I cant see any wrong with it, but any advice is warmly welcome. Private Sub Worksheet_Change(ByVal Target As Range) graphtype = Range("C49").Value With ActiveSheet.ChartObjects("Chart 2").Chart Select Case graphtype Case "P" .Axis(xlValue).TickLabels.NumberFormat = "0%;[Red](0%)" Case "N" .Axis(xlValue).TickLabels.NumberFormat = "#,##0;[Red](#,##0)" End Select End With End Sub regards, david |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Colon at the end of excel file name(ex: problem.xls:1, problem.xls | New Users to Excel | |||
Started out as an Access problem. Now an Excel problem | Excel Discussion (Misc queries) | |||
problem with a conditional max problem | Excel Discussion (Misc queries) | |||
Problem when multipple users access shared xl-file at the same time, macrocode for solve this problem? | Excel Programming | |||
Automatic TickLabel and TickMark Spacing | Excel Programming |