Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Problems creating "line and bar chart"

when recording the macro, I didn't have problems creating the two series, one a bar, and the second a line. However, upon running the macro, both series appear as bars! I retried recording the macro and the same problem occurred

Please email me at !
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Problems creating "line and bar chart"

When you look at the code that was recorded, it should look similar to this:

ActiveChart.ApplyCustomType ChartType:=xlBuiltIn, _
TypeName:="Line - Column"
ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range("A1:G3")
ActiveChart.Location Whe=xlLocationAsObject, Name:="Sheet1"

Rearrage these lines, so the chart type is applied after the source data
and location are set:

ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range("A1:G3")
ActiveChart.Location Whe=xlLocationAsObject, Name:="Sheet1"
ActiveChart.ApplyCustomType ChartType:=xlBuiltIn, _
TypeName:="Line - Column"


Ariel wrote:
when recording the macro, I didn't have problems creating the two series, one a bar, and the second a line. However, upon running the macro, both series appear as bars! I retried recording the macro and the same problem occurred!

Please email me at !



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
Disabled "Switch Row/Column" when creating chart from a pivot tabl Gunder Charts and Charting in Excel 1 October 8th 08 08:48 AM
How to insert a "Target" line into basic bar chart keith666 Charts and Charting in Excel 1 October 5th 08 08:00 PM
Creating "cliffs" in an area chart CurlerBob Charts and Charting in Excel 2 August 6th 08 03:00 AM
Creating an"Average" Line in a Scatter Graph Chris Fearon Charts and Charting in Excel 2 March 11th 07 10:25 PM
Lines in line chart are "agglomerating" data chowgirl Charts and Charting in Excel 3 March 9th 07 05:44 PM


All times are GMT +1. The time now is 03:33 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"