WD98: Error Using PrintToFile with PrintOut Method

ID: Q180201

The information in this article applies to:

SYMPTOMS

When you use the PrintOut method in Microsoft Visual Basic for Applications code, and you set the PrintToFile argument equal to True, you receive the following error message when you run the code:

   Run-time error '4198': Command failed

CAUSE

The PrintToFile argument is not implemented on the Macintosh.

REFERENCES

For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q163435
   TITLE     : VBA: Programming Resources for Visual Basic for
               Applications

Additional query words: wordcon OFF98 macro Sub Function procedure word98
Keywords          : kbcode kbwordvba macword98 
Version           : MACINTOSH:98
Platform          : MACINTOSH
Issue type        : kbprb

Last Reviewed: February 15, 1999