Solved

Alter internal margins  on chart titles

Posted on 2011-09-09
6
1,581 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

856 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