Solved

Alter internal margins  on chart titles

Posted on 2011-09-09
6
1,606 Views
Last Modified: 2012-05-12
Dear Experts:

Why is the following menu item greyed out in Excel 2007/2010?  
... Format Chart Title / Alignment / Internal Margins

I would like to alter the internal margins using VBA.

Help is much appreciated.  Thank you very  much in advance.

Regards, Andreas
0
Comment
Question by:AndreasHermle
  • 3
  • 3
6 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36513347
Typically things are "Dimmed" because they are not applicable.

(Notice how on the "Inset" tab the "Table" option is available when you are in the worksheet, but "Greyed out" ("dimmed") when you are in a chart.

<I would like to alter the internal margins using VBA.>

Perhaps you could first take a step back and explain what your ultimate goal is here?
Perhaps you are looking at the wrong option...

JeffCoachman
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36513385
Notice too how when you right-click on the chart Title "Select Date" and "3-D rotation are also "greyed out",...again, this means that these commands are not applicable...

So again, can you explain your ultimate goal first?

What are you hoping to accomplish if you were able to "set the "Internal margins".
How would the Chart Title change?

Being that the Title Text is in a "Text box" you may need to just manipulate the font...
0
 

Author Comment

by:AndreasHermle
ID: 36514083
Hi boag2000:

thank you very much for your swift help.

 ... my ultimate goal: At a given font size, with reduced internal margins rather long chart titles would not have a line break or the line break would occur 'later'.

I hope I could make myself clear with English being not my mother tongue.

Thank you.

Regards, Andreas
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36514782
Then if I am understanding your request, I am not sure this is possible via VBA.

You may have to play around with the Font/textbox size manually.


Let's see what other Experts post...

JeffCoachman
0
 

Accepted Solution

by:
AndreasHermle earned 0 total points
ID: 36518390
Hi Jeff,

thank you very much for your feedback.

As a matter of fact, altering the textbox size manually does not work either. As I stated earlier I could always change the font size of the chart title (manually or by VBA) to get the desired result. I was just curious if one could play around with the internal margins of this text box. I guess not.

As you said, let's wait for other answers to be posted ...

Regards, Andreas
0
 

Author Closing Comment

by:AndreasHermle
ID: 36708033
Actually there is no need to alter the internal margins of chart titles using VBA since the workaround (changing the font size of the chart title) is just fine for me.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question