Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 3,355
Default Setting Y axis display labels

What am I doing wrong he

For Each chtobj In aWS.ChartObjects
Debug.Print chtobj.Name
With chtobj
With chtobj.Axes
If Power <= 2 Then
.displayunits = "Hundreds"
ElseIf Power <= 3 Then
.displayunits = "Thousands"
ElseIf Power <= 6 Then
.displayunits = "Millions"
ElseIf Power <= 9 Then
.displayunits = "Billions"
ElseIf Power <= 12 Then
.displayunits = "Trillions"
End If
End With
End With
Next chtobj


I'm just guessing on .displayunits because I haven't been able to find any
reference for it.
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default Setting Y axis display labels

Hi,

Your not referencing the actual chart.

Amend your code. Also the second with does not require the chtobj.

For Each chtobj In aWS.ChartObjects
Debug.Print chtobj.Name
With chtobj.chart
With .Axes
If Power <= 2 Then

Cheers
Andy

Barb Reinhardt wrote:
What am I doing wrong he

For Each chtobj In aWS.ChartObjects
Debug.Print chtobj.Name
With chtobj
With chtobj.Axes
If Power <= 2 Then
.displayunits = "Hundreds"
ElseIf Power <= 3 Then
.displayunits = "Thousands"
ElseIf Power <= 6 Then
.displayunits = "Millions"
ElseIf Power <= 9 Then
.displayunits = "Billions"
ElseIf Power <= 12 Then
.displayunits = "Trillions"
End If
End With
End With
Next chtobj


I'm just guessing on .displayunits because I haven't been able to find any
reference for it.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change tick mark labels in z axis from values to texts? Flroa Charts and Charting in Excel 1 July 11th 06 06:28 PM
Scatter chart with text labels as Y axis? Charles Blaquière Charts and Charting in Excel 2 June 2nd 06 04:37 AM
LONG CATEGORY AXIS LABELS ARE BROKEN INTO 2 LINES Alejandro Charts and Charting in Excel 1 April 11th 06 06:45 PM
How do I display columns side-by-side in a two Y axis chart? Kristin C Charts and Charting in Excel 3 April 5th 06 12:35 PM
Linking Axis Labels Neil Charts and Charting in Excel 2 December 5th 04 09:04 PM


All times are GMT +1. The time now is 11:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"