Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Sep 2008
    East Hartford, Connecticut, USA
    Thanked 0 Times in 0 Posts

    SetDocumentDirty (2003/SP3)

    When opening multiple documents I receive a Run-Time error 509. The SetDocumentDirty command is not available because the document is locked for editing. The document is being opened up via automation, printed then closed. Any idea why this error would occur?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Thanked 28 Times in 28 Posts

    Re: SetDocumentDirty (2003/SP3)

    Welcome to Woody's Lounge!

    I found one similar question in the newsgroups: Run-Time error: '509' SetDocumentDirty command not available, but although it's more than 2 years old, it hasn't been answered.

    SetDocumentDirty is an old WordBasic command that is used in the Print option in the right-click menu of .doc files, but it is not clear to me why it would be invoked when using Automation. SetDocumentDirty would indeed fail if the document can't be edited.

Posting Permissions

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