Consulting

Results 1 to 3 of 3

Thread: Button to put Do Not AutoFit on all shapes

  1. #1
    VBAX Regular
    Joined
    Dec 2018
    Posts
    24
    Location

    Button to put Do Not AutoFit on all shapes

    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.

  2. #2
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,094
    Location
    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
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  3. #3
    VBAX Regular
    Joined
    Dec 2018
    Posts
    24
    Location
    Works perfect John. Very grateful. Thank you. Happy New Year

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •