PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Charting Re: Naming a chart

Reply

Re: Naming a chart

 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average.
Old 08-07-2003, 07:05 PM   #1
Dan E
Guest
 
Posts: n/a
Default Re: Naming a chart


Lynn,

You have to change the name of the chart in the properties window of the VBA
Select the chart from the project explorer and hit F4. Look for the (Name)
with brackets. If you change that you should be able to refer to your chart
in this fashion

MyCustomChart.AutoScaling = False

If you change the Name (without brackets) property you can refer to it like

Charts("MyCustomChart").AutoScaling = False

Hope that helps

Dan E

"Lynn" <tdunham@hydro.mb.ca> wrote in message
news:01cb01c3456f$daed5860$a301280a@phx.gbl...
> How do I name a chart so that it may be referred to in VBA
> code? The Help documentation indicates that this may be
> done by selecting the chart and typing in the Name box.
> This did not work for me however.



  Reply With Quote
Old 08-07-2003, 07:28 PM   #2
Dan E
Guest
 
Posts: n/a
Default Re: Naming a chart

Can you see your sheets?

"Lynn" <tdunham@hydro.mb.ca> wrote in message
news:026f01c34575$95207b90$a301280a@phx.gbl...
> Thanks for the advice Dan but I couldn't find the Chart
> listed in the Project Explorer. Any ideas why I'm not
> seeing any of my charts listed?
>
> >-----Original Message-----
> >Lynn,
> >
> >You have to change the name of the chart in the

> properties window of the VBA
> >Select the chart from the project explorer and hit F4.

> Look for the (Name)
> >with brackets. If you change that you should be able to

> refer to your chart
> >in this fashion
> >
> >MyCustomChart.AutoScaling = False
> >
> >If you change the Name (without brackets) property you

> can refer to it like
> >
> >Charts("MyCustomChart").AutoScaling = False
> >
> >Hope that helps
> >
> >Dan E
> >
> >"Lynn" <tdunham@hydro.mb.ca> wrote in message
> >news:01cb01c3456f$daed5860$a301280a@phx.gbl...
> >> How do I name a chart so that it may be referred to in

> VBA
> >> code? The Help documentation indicates that this may be
> >> done by selecting the chart and typing in the Name box.
> >> This did not work for me however.

> >
> >
> >.
> >



  Reply With Quote
Old 08-07-2003, 08:03 PM   #3
Lynn
Guest
 
Posts: n/a
Default Re: Naming a chart

Yes...I can see all of my sheets.
>-----Original Message-----
>Can you see your sheets?
>
>"Lynn" <tdunham@hydro.mb.ca> wrote in message
>news:026f01c34575$95207b90$a301280a@phx.gbl...
>> Thanks for the advice Dan but I couldn't find the Chart
>> listed in the Project Explorer. Any ideas why I'm not
>> seeing any of my charts listed?
>>
>> >-----Original Message-----
>> >Lynn,
>> >
>> >You have to change the name of the chart in the

>> properties window of the VBA
>> >Select the chart from the project explorer and hit F4.

>> Look for the (Name)
>> >with brackets. If you change that you should be able

to
>> refer to your chart
>> >in this fashion
>> >
>> >MyCustomChart.AutoScaling = False
>> >
>> >If you change the Name (without brackets) property you

>> can refer to it like
>> >
>> >Charts("MyCustomChart").AutoScaling = False
>> >
>> >Hope that helps
>> >
>> >Dan E
>> >
>> >"Lynn" <tdunham@hydro.mb.ca> wrote in message
>> >news:01cb01c3456f$daed5860$a301280a@phx.gbl...
>> >> How do I name a chart so that it may be referred to

in
>> VBA
>> >> code? The Help documentation indicates that this may

be
>> >> done by selecting the chart and typing in the Name

box.
>> >> This did not work for me however.
>> >
>> >
>> >.
>> >

>
>
>.
>

  Reply With Quote
Old 08-07-2003, 08:13 PM   #4
Dan E
Guest
 
Posts: n/a
Default Re: Naming a chart

NFI???
No Clue

"Lynn" <tdunham@hydro.mb.ca> wrote in message
news:00cc01c3457b$4b8c0f70$a501280a@phx.gbl...
> Yes...I can see all of my sheets.
> >-----Original Message-----
> >Can you see your sheets?
> >
> >"Lynn" <tdunham@hydro.mb.ca> wrote in message
> >news:026f01c34575$95207b90$a301280a@phx.gbl...
> >> Thanks for the advice Dan but I couldn't find the Chart
> >> listed in the Project Explorer. Any ideas why I'm not
> >> seeing any of my charts listed?
> >>
> >> >-----Original Message-----
> >> >Lynn,
> >> >
> >> >You have to change the name of the chart in the
> >> properties window of the VBA
> >> >Select the chart from the project explorer and hit F4.
> >> Look for the (Name)
> >> >with brackets. If you change that you should be able

> to
> >> refer to your chart
> >> >in this fashion
> >> >
> >> >MyCustomChart.AutoScaling = False
> >> >
> >> >If you change the Name (without brackets) property you
> >> can refer to it like
> >> >
> >> >Charts("MyCustomChart").AutoScaling = False
> >> >
> >> >Hope that helps
> >> >
> >> >Dan E
> >> >
> >> >"Lynn" <tdunham@hydro.mb.ca> wrote in message
> >> >news:01cb01c3456f$daed5860$a301280a@phx.gbl...
> >> >> How do I name a chart so that it may be referred to

> in
> >> VBA
> >> >> code? The Help documentation indicates that this may

> be
> >> >> done by selecting the chart and typing in the Name

> box.
> >> >> This did not work for me however.
> >> >
> >> >
> >> >.
> >> >

> >
> >
> >.
> >



  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off