Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How to set lables for x and y axis
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ning  
View profile  
 More options Oct 12, 9:13 pm
From: Ning <station.n...@gmail.com>
Date: Mon, 12 Oct 2009 04:13:34 -0700 (PDT)
Local: Mon, Oct 12 2009 9:13 pm
Subject: How to set lables for x and y axis
Hi heros,

I am using Excel 2007 and trying to get a label for both y-axis and x-
axis.
The vba code should be used as listed below:

ActiveChart.SetElement
(msoElementPrimaryCategoryAxisTitleAdjacentToAxis)
ActiveChart.SetElement (msoElementPrimaryValueAxisTitleVertical)
ActiveChart.SetElement (msoElementDataLabelRight)
ActiveChart.SetElement (msoElementChartTitleAboveChart)

Is that anyone can help me to convert the above VBA code in python.

SetElement is a function, as far as my understanding
"msoElementPrimaryCategoryAxisTitleAdjacentToAxis" should be constant.

I tried to find out the constants in win32com.client.constants, but i
can not find anything.

import win32com.client.constants as const
const.msoElementPrimaryCategoryAxisTitleAdjacentToAxis (not work)

Can someone explain to me why?

Kind regards,

Ning Zhang


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ning  
View profile  
 More options Oct 13, 6:43 pm
From: Ning <station.n...@gmail.com>
Date: Tue, 13 Oct 2009 01:43:51 -0700 (PDT)
Local: Tues, Oct 13 2009 6:43 pm
Subject: Re: How to set lables for x and y axis
Hi all, I have found the answer. We need to import
Microsoft Office 12.0 Object Library 2.4 for excel 2007 instead of
Microsoft Excel 12.0 Object library 1.6 in COMMakepy Utility.

>>import win32com.client.constants as const
>>const.msoElementPrimaryCategoryAxisTitleAdjacentToAxis

301

On 12 Oct, 12:13, Ning <station.n...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google