Solved

Alter internal margins  on chart titles

Posted on 2011-09-09
6
1,528 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now