PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average.

Re: Naming a chart

 
 
Dan E
Guest
Posts: n/a
 
      8th Jul 2003
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" <(E-Mail Removed)> wrote in message
news:01cb01c3456f$daed5860$(E-Mail Removed)...
> 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
 
 
 
 
Dan E
Guest
Posts: n/a
 
      8th Jul 2003
Can you see your sheets?

"Lynn" <(E-Mail Removed)> wrote in message
news:026f01c34575$95207b90$(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> >news:01cb01c3456f$daed5860$(E-Mail Removed)...
> >> 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
 
Lynn
Guest
Posts: n/a
 
      8th Jul 2003
Yes...I can see all of my sheets.
>-----Original Message-----
>Can you see your sheets?
>
>"Lynn" <(E-Mail Removed)> wrote in message
>news:026f01c34575$95207b90$(E-Mail Removed)...
>> 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" <(E-Mail Removed)> wrote in message
>> >news:01cb01c3456f$daed5860$(E-Mail Removed)...
>> >> 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
 
Dan E
Guest
Posts: n/a
 
      8th Jul 2003
NFI???
No Clue

"Lynn" <(E-Mail Removed)> wrote in message
news:00cc01c3457b$4b8c0f70$(E-Mail Removed)...
> Yes...I can see all of my sheets.
> >-----Original Message-----
> >Can you see your sheets?
> >
> >"Lynn" <(E-Mail Removed)> wrote in message
> >news:026f01c34575$95207b90$(E-Mail Removed)...
> >> 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" <(E-Mail Removed)> wrote in message
> >> >news:01cb01c3456f$daed5860$(E-Mail Removed)...
> >> >> 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

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
Naming a Chart William Bartusek Microsoft Excel Misc 2 16th Mar 2005 11:22 PM
Re: Naming Chart Randal W. Hozeski Microsoft Excel Programming 0 30th Dec 2003 12:24 AM
Naming Chart Randal W. Hozeski Microsoft Excel Programming 2 29th Dec 2003 03:46 PM
Re: Naming Chart Tom Ogilvy Microsoft Excel Programming 0 15th Jul 2003 05:16 PM
Naming a chart Lynn Microsoft Excel Charting 0 8th Jul 2003 05:42 PM


Features
 

Advertising
 

Newsgroups
 


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