View Full Version : [SOLVED:] Button to put Do Not AutoFit on all shapes
StarPig
12-22-2018, 02:37 AM
Hello. I have researched, but not found, a way to convert all objects in a presentation to be 'Do Not AutoFit'. It is tedious to go through Format Shape > Text Box > Do Not AutoFit after selecting objects per slide. Anyone able to help is a genius. I do not want to use 'Set Autoshape Defaults' as this causes more agro when inserting new shapes. Thank you all.
John Wilson
12-22-2018, 04:44 AM
Maybe this:
Sub DNAuto()
Dim oshp As Shape
Dim osld As Slide
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.HasTextFrame Then
oshp.TextFrame2.AutoSize = msoAutoSizeNone
End If
Next
Next
End Sub
StarPig
12-30-2018, 05:36 AM
Works perfect John. Very grateful. Thank you. Happy New Year
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.