Consulting

Results 1 to 2 of 2

Thread: PPT 2016 Publish to Word and Show Codes?

  1. #1
    VBAX Regular
    Joined
    Nov 2015
    Posts
    10
    Location

    PPT 2016 Publish to Word and Show Codes?

    Hello!

    Working with PowerPoint 2016:

    1) How do you publish or convert slides to Word (text boxes, not the outline)?
    2) Does PPT have a Reveal Codes function like Word where you can see the non-printing characters? How can you find all non-breaking spaces, for instance and replace those with regular spaces?

    I appreciate your help!

    Regards,
    Leaning

  2. #2
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,094
    Location
    There's no in built way to do 1 or 2

    You could use code to replace non breaking with normal spaces though (NOTE this will not work with text in smart art or tables without extra code)

    Sub zapNBS()
    Dim osld As Slide
    Dim oshp As Shape
    Dim oTxtRng As TextRange
    Dim oTmpRng As TextRange
    On Error Resume Next
    For Each osld In ActivePresentation.Slides
    For Each oshp In osld.Shapes
    If oshp.HasTextFrame Then
            If oshp.TextFrame.HasText Then
                Set oTxtRng = oshp.TextFrame.TextRange
                'Non Break Space is 160, normal space 32
                Set oTmpRng = oTxtRng.Replace(Chr(160), Chr(32))
                Do While Not oTmpRng Is Nothing
                    Set oTmpRng = oTxtRng.Replace(Chr(160), Chr(32))
                Loop
           End If
        End If
        Next oshp
        Next osld
    End Sub
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

Posting Permissions

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