Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-17-2024, 07:59 AM
VisionAvenger VisionAvenger is offline All Charts the same size Windows 10 All Charts the same size Office 2013
Novice
All Charts the same size
 
Join Date: Mar 2016
Posts: 16
VisionAvenger is on a distinguished road
Default All Charts the same size

I've done quite a few web searches, but I can't find any method to resize ALL the charts in a Word document. You can't record a macro (if you do, no code is generated), and you can't use the Format Painter.





Is there no way to make all Charts the same size without having to go through one-by-one and changing the height and width?


Thanks for any help.
Reply With Quote
  #2  
Old 01-17-2024, 03:15 PM
Guessed's Avatar
Guessed Guessed is offline All Charts the same size Windows 10 All Charts the same size Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You can do it with a macro quite easily. Are all the charts placed inline or do they have text wrapping turned on? Are there other graphics in the document that you don't want resized?
At it's simplest the macro could be
Code:
Sub ResizeGraphics()
  Dim inShp As InlineShape
  For Each inShp In ActiveDocument.InlineShapes
    inShp.LockAspectRatio = msoTrue
    inShp.Width = CentimetersToPoints(5)
  Next inShp
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 01-18-2024, 02:00 AM
VisionAvenger VisionAvenger is offline All Charts the same size Windows 10 All Charts the same size Office 2013
Novice
All Charts the same size
 
Join Date: Mar 2016
Posts: 16
VisionAvenger is on a distinguished road
Default

Thanks, Andrew. Legend!


Have a great day!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
All Charts the same size change printer settings - page size not paper size trevorc Excel Programming 4 07-20-2020 05:10 PM
Pasting Excel Charts and Graphs into PPT 2010 - Retaining Consistent Size pptdiva PowerPoint 0 06-29-2017 03:21 PM
After updating linked excel charts in publisher, all charts are moved effinglife Publisher 0 05-23-2017 02:27 AM
Font size showing different (some superscripted??) but tools show its the same size? mikkygee PowerPoint 4 12-14-2015 11:21 PM
All Charts the same size Copying excel charts into word - huge file size. Matt.M Word 2 04-02-2014 07:38 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft