#1
|
|||
|
|||
Chart Fit to Content
Hi,
Chart Legend content is not shown fully due to its size. Is there any option to fit to content for chart instead of manually changing its size. Since we have many charts in each document. Last edited by Anitha; 12-10-2017 at 01:32 PM. Reason: Attachment |
#2
|
||||
|
||||
After inserting the charts, you could re-set the width of all of them in a single pass with a macro like:
Code:
Sub Demo() Dim sWdth As Single, iShp As InlineShape With ActiveDocument With .PageSetup sWdth = .PageWidth - .LeftMargin - .RightMargin - .Gutter End With For Each iShp In ActiveDocument.InlineShapes With iShp If .Type = wdInlineShapeChart Then .Width = sWdth End With Next End With End Sub For Mac macro installation & usage instructions, see: https://wordmvp.com/Mac/InstallMacro.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
chart |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PPT 2010 - Animated Chart by Series - Animations reset when editing chart | agaudet21 | PowerPoint | 0 | 10-12-2017 06:18 AM |
Macro to save docx to doc that checks compatibility and converts content controls to static content. | staicumihai | Word VBA | 4 | 10-12-2016 08:23 PM |
Excel found unreadable content in file.xls. Do you want to recover the content of this workbook? | Sanfran | Excel | 2 | 10-21-2014 12:09 AM |
macro for change content of cell2 when content of cell1 changes | Intruder | Excel Programming | 1 | 11-17-2012 08:24 PM |
Package for CD with links to Windows media player content and Flash Shockwave content | hectorh | PowerPoint | 4 | 10-15-2009 12:22 PM |