+ Reply to Thread
Results 1 to 3 of 3

Macro to specify axis min and max scale? Excel 2003

  1. #1
    Registered User
    Join Date
    09-19-2006
    Posts
    39

    Macro to specify axis min and max scale? Excel 2003

    Hi, Sorry if this is a naive question, I'm not proficient in VBA, I usually just record macros, an approach which doesn't seem to work with this problem, in Excel 2003... What I'd like to do is this. Say I have a chart, sometimes I'd like the y-axis to be scaled automatically, other times, I would like to set the y-axis min and max value manually, without having to right click on the axis and set the values in the dialogue box. What I'd like to do is to offer the user a choice which can be made on the face of the worksheet, between:

    a) entering a 1 in a named cell, e.g "scale_options", which would result in the scale being set automatically, and

    b) entering a 2 in "scale_options", and then manually entering the max y-axis value in another named cell e.g "axis_max", and manually entering the min y-axis value in yet another named cell e.g. "axis_min"

    and finally, running a macro which implemets the choice.

    Is this possible/ terribly involved?

    I'd be grateful for any help

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,461

    Re: Macro to specify axis min and max scale? Excel 2003

    Here is how to link the min/max
    http://peltiertech.com/Excel/Charts/...nkToSheet.html

    You can add further code to check another cell for use of values or automatic
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    09-19-2006
    Posts
    39

    Re: Macro to specify axis min and max scale? Excel 2003

    Thnak you Andy!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1