PRJ: Using VBA Print Method Without Displaying Dialog Box

Last reviewed: November 24, 1997
Article ID: Q119778
The information in this article applies to:
  • Microsoft Project 98 for Windows
  • Microsoft Project for Windows 95, versions 4.1, 4.1a
  • Microsoft Project for Windows, versions 4.0
  • Microsoft Visual Basic Programming System, Applications Edition, version 1.0

SUMMARY

To create a Visual Basic, Applications Edition, macro that uses the FilePrint command but that does not display the Print dialog box, use any of the Object qualifiers in their non-default modes.

For example, you can use the following syntax:

   FilePrint 1

When you use this command in a Visual Basic module in Microsoft Project for Windows, you will print the active file starting with the first page and the Print dialog box will not be displayed.

MORE INFORMATION

For more information about the named arguments that you can use with the FilePrint command in Visual Basic, Applications Edition, choose the Contents command from the Help menu in Microsoft Project, and choose the Visual Basic Reference icon. In the Visual Basic Reference, choose the Search button, and type "FilePrint."


Additional query words: 4.00 Vbapps
Keywords : kbcode kbprg
Version : 4.0 4.1 4.1a 98
Platform : MACINTOSH WINDOWS
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.