Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    McLean, VA
    Posts
    125
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Embedded PowerPoint Slide problem (Word 2003 SP2)

    I have embedded PowerPoint slides in some Word documents. Sometimes when I update all the fields in a document, the slides disappear and I get the message "Error! Objects cannot be created from editing field codes." I don't understand why this happens, and it is causing our team a lot of grief. In my test file, which is unfortunately was too large to attach, there are two embedded PowerPoint slides. When all fields are updated, the first slide is unaffected, but the second one gets replaced by the error message. Before updating, when pressing Shift-F9, I see { EMBED POWERPOINT.SLIDE.8 } for both slides.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Embedded PowerPoint Slide problem (Word 2003 SP2)

    What happens if you lock the slides for updating? This can be done by selecting a slide and pressing Ctrl+F11.

  3. #3
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    McLean, VA
    Posts
    125
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Embedded PowerPoint Slide problem (Word 2003 SP2)

    When I lock the slides they don't update when I try to do so. But with up to 50 slides in a document, visiting each slide and locking it would be burdensome, that is unless there is a macro that can do this.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Embedded PowerPoint Slide problem (Word 2003 SP2)

    The following macro will lock all fields in the active document whose field code contains the word PowerPoint:

    Sub LockPPT()
    Dim fld As Field
    For Each fld In ActiveDocument.Fields
    If InStr(1, fld.Code, "PowerPoint", vbTextCompare) > 0 Then
    fld.Locked = True
    End If
    Next fld
    End Sub

  5. #5
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    McLean, VA
    Posts
    125
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Embedded PowerPoint Slide problem (Word 2003 SP2)

    Thanks again, Hans. The LockPPT macro did the trick! The writing team will be ecstatic when I show them.

Posting Permissions

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