Knowledge Base

Running recorded FilePrint macro shows print options

Article ID: 172782

Article Last Modified on 1/20/2007


APPLIES TO


This article was previously published under Q172782

SYMPTOMS

In Microsoft Project, when you use the Macro Recorder to record the action of clicking the Print button on the Standard toolbar, the following macro command is recorded:
   FilePrint Copies:=1
				
When you run the macro that contains this code, the Print Options dialog box appears. This is the same behavior you will receive if you click Print on the File menu. However, it is not the same behavior you receive if you click the Print button on the Standard toolbar.

WORKAROUND

To work around this problem, edit the macro code and replace this code:
   FilePrint Copies:=1
				
with this code:
   FilePrint FromPage:=1
				

STATUS

Microsoft has confirmed that this is a problem in the versions of Microsoft Project that are listed in the "Applies to" section.

Additional query words: PRJ2002 PRJ2003 PRJ PRJ2007 prj2000

Keywords: kbbug kbmacro kbpending kbusage KB172782