PC Review


Reply
Thread Tools Rate Thread

when I create a chart for the first time,

 
 
greg
Guest
Posts: n/a
 
      22nd Jul 2009
when I create a chart for the first time,
I cannot get to any of the
Chart.SeriesCollection(1).ErrorBars.Border properties.
They all come up "unable to get XXX property of the border class"
then next time I draw a chart, everything is fine.
I even tried the following before trying to set these properties:
Excel.ActiveWorkbook.RefreshAll
ActiveSheet.ChartObjects(1).Chart.Refresh
Calculate
but still cannot see the chart border properties.

Anyone have any ideas?

thanks


 
Reply With Quote
 
 
 
 
ryguy7272
Guest
Posts: n/a
 
      22nd Jul 2009
Try using a ject. Dim to declare a ChartObject. Practice by recording a
macro when building your chart! Then, copy/paste the code that you get into
your macro. It will be something like this:

Sub BuildBigChart()
ActiveSheet.ChartObjects.Delete
Dim myChtObj As ChartObject

Set myChtObj = ActiveSheet.ChartObjects.Add _
(Left:=500, Width:=800, Top:=50, Height:=1500)

myChtObj.Chart.SetSourceData
Source:=Sheets("Sheet1").Range("BeginNamedRange:EndNamedRange")
myChtObj.Chart.ChartType = xlBarClustered

Dim RngToCover As Range
'Do all the formatting and stuff here…

End Sub

HTH,
Ryan---



--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"greg" wrote:

> when I create a chart for the first time,
> I cannot get to any of the
> Chart.SeriesCollection(1).ErrorBars.Border properties.
> They all come up "unable to get XXX property of the border class"
> then next time I draw a chart, everything is fine.
> I even tried the following before trying to set these properties:
> Excel.ActiveWorkbook.RefreshAll
> ActiveSheet.ChartObjects(1).Chart.Refresh
> Calculate
> but still cannot see the chart border properties.
>
> Anyone have any ideas?
>
> thanks
>
>
>

 
Reply With Quote
 
greg
Guest
Posts: n/a
 
      22nd Jul 2009
it does seem like I am creating the chart correctly.
even looking at the properties the haserrorbars = true
just the first time creating the properties for error bars are
unable to get XXX property of the border class

but second time i create a char, its fine.


"ryguy7272" <(E-Mail Removed)> wrote in message
news:46FA5FEB-31FE-4E49-9443-(E-Mail Removed)...
> Try using a ject. Dim to declare a ChartObject. Practice by recording a
> macro when building your chart! Then, copy/paste the code that you get
> into
> your macro. It will be something like this:
>
> Sub BuildBigChart()
> ActiveSheet.ChartObjects.Delete
> Dim myChtObj As ChartObject
>
> Set myChtObj = ActiveSheet.ChartObjects.Add _
> (Left:=500, Width:=800, Top:=50, Height:=1500)
>
> myChtObj.Chart.SetSourceData
> Source:=Sheets("Sheet1").Range("BeginNamedRange:EndNamedRange")
> myChtObj.Chart.ChartType = xlBarClustered
>
> Dim RngToCover As Range
> 'Do all the formatting and stuff here.
>
> End Sub
>
> HTH,
> Ryan---
>
>
>
> --
> Ryan---
> If this information was helpful, please indicate this by clicking ''Yes''.
>
>
> "greg" wrote:
>
>> when I create a chart for the first time,
>> I cannot get to any of the
>> Chart.SeriesCollection(1).ErrorBars.Border properties.
>> They all come up "unable to get XXX property of the border class"
>> then next time I draw a chart, everything is fine.
>> I even tried the following before trying to set these properties:
>> Excel.ActiveWorkbook.RefreshAll
>> ActiveSheet.ChartObjects(1).Chart.Refresh
>> Calculate
>> but still cannot see the chart border properties.
>>
>> Anyone have any ideas?
>>
>> thanks
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a chart of totals over time? Nellie Nobody Microsoft Excel Worksheet Functions 1 24th Dec 2009 03:31 AM
Long time user,can't create a chart-help! ChasX Microsoft Excel Charting 2 26th Nov 2007 05:25 AM
How to create a time study chart =?Utf-8?B?RE4=?= Microsoft Excel Charting 1 26th Feb 2007 11:35 PM
How do i create a pie chart that shows % of time on tasks? =?Utf-8?B?Sm9obg==?= Microsoft Excel Charting 0 19th Dec 2006 12:49 AM
How to create a time chart ? Ayato Microsoft Excel Charting 1 8th Mar 2004 06:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 AM.