Consulting

Results 1 to 3 of 3

Thread: error with the AutoActive object code !!

  1. #1

    Exclamation error with the AutoActive object code !!

    Why when i use this code

    [vba]Private Sub Document_Open()

    Dim objOLE As Word.OLEFormat
    Set objOLE = ActiveDocument.InlineShapes(1).OLEFormat
    objOLE.Activate

    End Sub
    [/vba]
    Show me this message

    http://www3.0zz0.com/2012/10/12/19/344389744.jpg

    And if i choose "No" This error appears ??

    http://www3.0zz0.com/2012/10/12/19/354387903.png


  2. #2
    VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,273
    Location
    Cross-posted at: http://www.msofficeforums.com/word-v...en-i-open.html

    For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,710
    Location
    Please do not cross-post. You are getting help with that other 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
  •