PC Review


Reply
Thread Tools Rate Thread

changing font size of chart title

 
 
Kathl
Guest
Posts: n/a
 
      29th Apr 2008
We are trying to change the font size of the chart size automatically via vba
and have included this:

ActiveChart.ChartTitle.Select

With Selection.Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With

For this code the program doesn't change the formatting of the chart title.
Perhaps you can find the fault...


 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      29th Apr 2008
It works fine here, although you don't need to select something already
selected

With ActiveChart.ChartTitle
With .Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
End With


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Kathl" <(E-Mail Removed)> wrote in message
news:20B9960F-FE98-469B-BC8A-(E-Mail Removed)...
> We are trying to change the font size of the chart size automatically via
> vba
> and have included this:
>
> ActiveChart.ChartTitle.Select
>
> With Selection.Font
> .Name = "Arial"
> .FontStyle = "Bold"
> .Size = 12
> .Strikethrough = False
> .Superscript = False
> .Subscript = False
> .OutlineFont = False
> .Shadow = False
> .Underline = xlUnderlineStyleNone
> .ColorIndex = xlAutomatic
> End With
>
> For this code the program doesn't change the formatting of the chart
> title.
> Perhaps you can find the fault...
>
>



 
Reply With Quote
 
Kathl
Guest
Posts: n/a
 
      30th Apr 2008
Yeah, thx.

when i delete all this select statements everything's working fine.

"Bob Phillips" wrote:

> It works fine here, although you don't need to select something already
> selected
>
> With ActiveChart.ChartTitle
> With .Font
> .Name = "Arial"
> .FontStyle = "Bold"
> .Size = 12
> .Strikethrough = False
> .Superscript = False
> .Subscript = False
> .OutlineFont = False
> .Shadow = False
> .Underline = xlUnderlineStyleNone
> .ColorIndex = xlAutomatic
> End With
> End With
>
>
> --
> ---
> HTH
>
> Bob
>
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
>
>
> "Kathl" <(E-Mail Removed)> wrote in message
> news:20B9960F-FE98-469B-BC8A-(E-Mail Removed)...
> > We are trying to change the font size of the chart size automatically via
> > vba
> > and have included this:
> >
> > ActiveChart.ChartTitle.Select
> >
> > With Selection.Font
> > .Name = "Arial"
> > .FontStyle = "Bold"
> > .Size = 12
> > .Strikethrough = False
> > .Superscript = False
> > .Subscript = False
> > .OutlineFont = False
> > .Shadow = False
> > .Underline = xlUnderlineStyleNone
> > .ColorIndex = xlAutomatic
> > End With
> >
> > For this code the program doesn't change the formatting of the chart
> > title.
> > Perhaps you can find the fault...
> >
> >

>
>
>

 
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
Changing font style/size/color/etc for multiple series in a chart? Hossdaddy Microsoft Excel Charting 3 14th Jan 2010 07:36 PM
Font Size in Chart Title Bill Microsoft Excel Programming 1 14th Jul 2006 04:06 PM
Title Font Size Changes =?Utf-8?B?TWFsaWNo?= Windows XP MovieMaker 0 16th Sep 2005 03:33 PM
Changing chart title changes position of chart =?Utf-8?B?QmluZw==?= Microsoft Excel Programming 3 9th Mar 2005 08:11 AM
left-panel font size corresponds to title-slide font seferiad Microsoft Powerpoint 1 26th Aug 2004 06:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:31 PM.