Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
Janet T
 
Posts: n/a
Default How do I swap X & Y Axes on a Chart

Folks
A colleague has created a chart but needs to swap the X & Y axes. I know
this isn't as easy as it sounds, as I've been reading through lots of entries
in this forum. I have found Jon Peltier's fantastic little .zip file
(SwitchXYAxes.xls) however, when I try and run the "Active Chart - Switch X
Y Axes" option I get a run time error "1004 unable to gt the
MinimumScaleISAuto property of the Axis class". I'm now stuck as I know next
to nothing about VBA.

I would be really, really grateful if someone could come back with either an
answer to swapping axes, or to get Jon's little macro running.

Thanks a lot
Janet

  #2   Report Post  
Posted to microsoft.public.excel.charting
B. R.Ramachandran
 
Posts: n/a
Default How do I swap X & Y Axes on a Chart

Hi,

Right-click anywhere in the plot/graph area -- "Source Data" -- click on
the "Series" Tab and manually change the column labels in the ranges (letters
such as "A", "B"..) for "X Values" and "Y Values" (for eample, if X-Values is
Sheet1!$A$2:$A$101, and Y-Values is Sheet1!$B$1:$a$101, changes the "A"s to
"B"s and vice versa) -- "OK"

Regards,
B. R. Ramachandran

"Janet T" wrote:

Folks
A colleague has created a chart but needs to swap the X & Y axes. I know
this isn't as easy as it sounds, as I've been reading through lots of entries
in this forum. I have found Jon Peltier's fantastic little .zip file
(SwitchXYAxes.xls) however, when I try and run the "Active Chart - Switch X
Y Axes" option I get a run time error "1004 unable to gt the
MinimumScaleISAuto property of the Axis class". I'm now stuck as I know next
to nothing about VBA.

I would be really, really grateful if someone could come back with either an
answer to swapping axes, or to get Jon's little macro running.

Thanks a lot
Janet

  #3   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier
 
Posts: n/a
Default How do I swap X & Y Axes on a Chart

If the chart is embedded in the same worksheet as the data, you can select
the chart series, then notice where the colored rectangles are which denote
the series' data. Drag the Purple (X Values) and Blue (Y Values) rectangles
around the sheet to change the data range. It's best to drag one to a
neutral (but not blank) location, because if the two rectangles are on top
of one another, it's hard to keep track.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


"B. R.Ramachandran" wrote in
message ...
Hi,

Right-click anywhere in the plot/graph area -- "Source Data" -- click on
the "Series" Tab and manually change the column labels in the ranges
(letters
such as "A", "B"..) for "X Values" and "Y Values" (for eample, if X-Values
is
Sheet1!$A$2:$A$101, and Y-Values is Sheet1!$B$1:$a$101, changes the "A"s
to
"B"s and vice versa) -- "OK"

Regards,
B. R. Ramachandran

"Janet T" wrote:

Folks
A colleague has created a chart but needs to swap the X & Y axes. I know
this isn't as easy as it sounds, as I've been reading through lots of
entries
in this forum. I have found Jon Peltier's fantastic little .zip file
(SwitchXYAxes.xls) however, when I try and run the "Active Chart -
Switch X
Y Axes" option I get a run time error "1004 unable to gt the
MinimumScaleISAuto property of the Axis class". I'm now stuck as I know
next
to nothing about VBA.

I would be really, really grateful if someone could come back with either
an
answer to swapping axes, or to get Jon's little macro running.

Thanks a lot
Janet



  #4   Report Post  
Posted to microsoft.public.excel.charting
Janet T
 
Posts: n/a
Default How do I swap X & Y Axes on a Chart

Jon
thank you very much. Any ideas why your .zip file didn't work?
Regards
Janet


"Jon Peltier" wrote:

If the chart is embedded in the same worksheet as the data, you can select
the chart series, then notice where the colored rectangles are which denote
the series' data. Drag the Purple (X Values) and Blue (Y Values) rectangles
around the sheet to change the data range. It's best to drag one to a
neutral (but not blank) location, because if the two rectangles are on top
of one another, it's hard to keep track.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


"B. R.Ramachandran" wrote in
message ...
Hi,

Right-click anywhere in the plot/graph area -- "Source Data" -- click on
the "Series" Tab and manually change the column labels in the ranges
(letters
such as "A", "B"..) for "X Values" and "Y Values" (for eample, if X-Values
is
Sheet1!$A$2:$A$101, and Y-Values is Sheet1!$B$1:$a$101, changes the "A"s
to
"B"s and vice versa) -- "OK"

Regards,
B. R. Ramachandran

"Janet T" wrote:

Folks
A colleague has created a chart but needs to swap the X & Y axes. I know
this isn't as easy as it sounds, as I've been reading through lots of
entries
in this forum. I have found Jon Peltier's fantastic little .zip file
(SwitchXYAxes.xls) however, when I try and run the "Active Chart -
Switch X
Y Axes" option I get a run time error "1004 unable to gt the
MinimumScaleISAuto property of the Axis class". I'm now stuck as I know
next
to nothing about VBA.

I would be really, really grateful if someone could come back with either
an
answer to swapping axes, or to get Jon's little macro running.

Thanks a lot
Janet




  #5   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier
 
Posts: n/a
Default How do I swap X & Y Axes on a Chart

I don't know why it didn't work. I've only rarely had it happen, but
sometimes others have had a problem. It could be some irregularity in the
source data range, or some additional bulleproofing I would have included if
it were a commercial package.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


"Janet T" wrote in message
...
Jon
thank you very much. Any ideas why your .zip file didn't work?
Regards
Janet


"Jon Peltier" wrote:

If the chart is embedded in the same worksheet as the data, you can
select
the chart series, then notice where the colored rectangles are which
denote
the series' data. Drag the Purple (X Values) and Blue (Y Values)
rectangles
around the sheet to change the data range. It's best to drag one to a
neutral (but not blank) location, because if the two rectangles are on
top
of one another, it's hard to keep track.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


"B. R.Ramachandran" wrote in
message ...
Hi,

Right-click anywhere in the plot/graph area -- "Source Data" -- click
on
the "Series" Tab and manually change the column labels in the ranges
(letters
such as "A", "B"..) for "X Values" and "Y Values" (for eample, if
X-Values
is
Sheet1!$A$2:$A$101, and Y-Values is Sheet1!$B$1:$a$101, changes the
"A"s
to
"B"s and vice versa) -- "OK"

Regards,
B. R. Ramachandran

"Janet T" wrote:

Folks
A colleague has created a chart but needs to swap the X & Y axes. I
know
this isn't as easy as it sounds, as I've been reading through lots of
entries
in this forum. I have found Jon Peltier's fantastic little .zip file
(SwitchXYAxes.xls) however, when I try and run the "Active Chart -
Switch X
Y Axes" option I get a run time error "1004 unable to gt the
MinimumScaleISAuto property of the Axis class". I'm now stuck as I
know
next
to nothing about VBA.

I would be really, really grateful if someone could come back with
either
an
answer to swapping axes, or to get Jon's little macro running.

Thanks a lot
Janet








  #6   Report Post  
Posted to microsoft.public.excel.charting
Andy Pope
 
Posts: n/a
Default How do I swap X & Y Axes on a Chart

Hi,

Any chance your chart is a Line chart and not a xy scatter chart.
Line charts have a categorical x axis so that property would not be
applicable.

Cheers
Andy

Janet T wrote:
Folks
A colleague has created a chart but needs to swap the X & Y axes. I know
this isn't as easy as it sounds, as I've been reading through lots of entries
in this forum. I have found Jon Peltier's fantastic little .zip file
(SwitchXYAxes.xls) however, when I try and run the "Active Chart - Switch X
Y Axes" option I get a run time error "1004 unable to gt the
MinimumScaleISAuto property of the Axis class". I'm now stuck as I know next
to nothing about VBA.

I would be really, really grateful if someone could come back with either an
answer to swapping axes, or to get Jon's little macro running.

Thanks a lot
Janet


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #7   Report Post  
Posted to microsoft.public.excel.charting
Janet T
 
Posts: n/a
Default How do I swap X & Y Axes on a Chart

Hi Andy - No, its definitely an XY Scatter. Thanks Janet

"Andy Pope" wrote:

Hi,

Any chance your chart is a Line chart and not a xy scatter chart.
Line charts have a categorical x axis so that property would not be
applicable.

Cheers
Andy

Janet T wrote:
Folks
A colleague has created a chart but needs to swap the X & Y axes. I know
this isn't as easy as it sounds, as I've been reading through lots of entries
in this forum. I have found Jon Peltier's fantastic little .zip file
(SwitchXYAxes.xls) however, when I try and run the "Active Chart - Switch X
Y Axes" option I get a run time error "1004 unable to gt the
MinimumScaleISAuto property of the Axis class". I'm now stuck as I know next
to nothing about VBA.

I would be really, really grateful if someone could come back with either an
answer to swapping axes, or to get Jon's little macro running.

Thanks a lot
Janet


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info

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
Activating a Chart object Hari Prasadh Charts and Charting in Excel 6 August 2nd 05 07:22 PM
Urgent Chart Assistance Brent E Charts and Charting in Excel 1 May 10th 05 09:09 AM
Urgent Chart Assistance Requested Brent E Excel Discussion (Misc queries) 0 May 9th 05 11:01 PM
Create a custom chart, two stacked bars/month w/ two axes? Oscar Charts and Charting in Excel 1 March 21st 05 11:07 PM
3D Chart with Continuous Data in all three Axes Barb Reinhardt Charts and Charting in Excel 3 January 10th 05 07:09 PM


All times are GMT +1. The time now is 07:53 PM.

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

About Us

"It's about Microsoft Excel"