Microsoft KB Archive/98001

{|
 * width="100%"|

Excel: Printing from File Manager Displays Print Dialog

 * }

-

The information in this article applies to:


 * Microsoft Excel for Windows, versions 3.0, 4.0, 4.0a, 5.0

-

SUMMARY
When you print a Microsoft Excel worksheet, macro sheet, or chart from Microsoft Windows File Manager, the Microsoft Excel Print dialog box may be displayed and prompt you to choose OK before you can begin printing. To print the file without having to choose the OK button in the Microsoft Excel Print dialog box, you need to modify the Microsoft Windows Registration Database.

MORE INFORMATION
In Microsoft Windows version 3.1, you can print a file from File Manager by dragging the icon of the file and placing it on the Print Manager icon, or you can choose the Print command from the File menu. Both of these methods will run or activate the application the file is associated with, open the file, and print it.

Note: The application that the file will open is determined by the file extension of the file that you want to print.

The Print DDE Message listed in the Microsoft Windows Registration Database determines if a file is printed with or without confirmation. When you register Microsoft Excel version 4.0, it uses the PRINT? function for the Print DDE Message rather than the PRINT function. The question mark form of a macro command causes the associated dialog box to be displayed and requires you to enter some type of input before the macro will continue. To bypass the print dialog box when you print from File Manager, edit the Microsoft Excel file entries in the Microsoft Windows Registration Database.

To change the registration details:


 * 1) In Program Manager, choose Run from the File menu.
 * 2) Type &quot;REGEDIT&quot; (without the quotation marks) and press ENTER.
 * 3) Select Microsoft Excel Worksheet, and from the Edit menu, choose Modify File Type.
 * 4) In the Action box, choose the Print button.
 * 5) In the DDE Message box, remove the question mark that follows the word &quot;print.&quot; For example, you would change:

[open(&quot;%1&quot;)][print?][quit]

-to-

[open(&quot;%1&quot;)][print][quit]
 * 1) Make this same change in the DDE Application Not Running box.
 * 2) Choose OK.

If you also want to print Macro Sheets and Charts from the File Manager without confirmation, repeat steps 1-7 but in step 3, select Microsoft Excel Macrosheet or Microsoft Excel Chart. The changes you make to the Registration Database will take effect immediately.