Microsoft KB Archive/144798

From BetaArchive Wiki

Sample Macro to Clear the Print To File Check Box

Q144798



The information in this article applies to:


  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c





SUMMARY

This article provides a sample macro that clears the Print To File check box without printing a document.



MORE INFORMATION

WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

To clear the Print To File check box, create a macro that prints a page range that does not exist. For example, the following macro prints page 999. If your document contains page 999 choose a different page range.

Sub Main
   FilePrint .Range = 3, .From = "999", .To = "999", .PrintToFile = 0
End Sub 

Additional query words: 6.0 macword winword ntword 1.0 iaword kb_sgmlauthor

Keywords :
Issue type :
Technology :


Last Reviewed: November 8, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.