Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi all, I recorded a macro to add a chart, and altered the code shown as follows: Sub newChart() charts.Add ActiveChart.Location Whe=xlLocationAsObject, Name:="User Preferences" With ActiveChart ..SetSourceData Source:=Sheets("User Preferences").Range("A12").CurrentRegion, PlotBy:=xlColumns ..HasTitle = True ..ChartType = xlColumnClustered ..ChartTitle.Characters.Text = "Interactive Chart Analysis" ..Axes(xlCategory, xlPrimary).HasTitle = True ..Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = "Countries" ..Axes(xlValue, xlPrimary).HasTitle = True ..Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "Rating" End With End Sub however, while 'Call newChart', error message shows method 'Add' is not found. i've checked books and online information, but still couldn't solve it. can anyone help please? :( Thanks Fendic -- Fendic ------------------------------------------------------------------------ Fendic's Profile: http://www.excelforum.com/member.php...o&userid=23959 View this thread: http://www.excelforum.com/showthread...hreadid=380441 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Fendic it works for me, can you zip your excel file and attach to thi pos -- anilsolipura ----------------------------------------------------------------------- anilsolipuram's Profile: http://www.excelforum.com/member.php...fo&userid=1627 View this thread: http://www.excelforum.com/showthread.php?threadid=38044 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() i am afraid, the project is related to a huge database, and I don't think i am allowed to attach it together. + the code i wrote is exact the same as I posted. and I simply call the methed as: Call newChart Does it need to include some library or anything? i really got confused. Can anyone help pleeeeeeeeeeeeease? :( -- Fendic ------------------------------------------------------------------------ Fendic's Profile: http://www.excelforum.com/member.php...o&userid=23959 View this thread: http://www.excelforum.com/showthread...hreadid=380441 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
create line chart with two axises in Pivot Chart | Charts and Charting in Excel | |||
Chart data file lost - need to re-create from chart? | Charts and Charting in Excel | |||
How to see the chart coding? | Charts and Charting in Excel | |||
Need help with data from coding....try to create an update button | Excel Programming | |||
Excel Chart Event Coding | Excel Programming |