Unexpected behavior when you use different print quality for sheets in Excel (168563)
The information in this article applies to:
- Microsoft Office Excel 2003
- Microsoft Excel 2002
- Microsoft Excel 2000
- Microsoft Excel 97 for Windows
This article was previously published under Q168563 SYMPTOMS
When you print multiple worksheets in Microsoft Excel 97, multiple print
jobs may be generated. This may cause the following behavior
to occur:
- If you are printing to a file, only some of the sheets are printed to
the file; remaining sheets are printed to your printer.
- If you are printing to a file, you may be prompted to enter the name of
the output file multiple times.
As a result, more than one output file is generated. Each file contains
part of the complete printout.
- If you are using a Microsoft Visual Basic for Applications macro to
print the sheets, the macro may fail because there are multiple requests
for names for the output files.
- If you are printing to a network printer that is heavily used, your
print jobs may be mixed in with other users' print jobs.
CAUSE
This behavior occurs if you use different print quality settings to print
the worksheets. When you print multiple worksheets in Microsoft Excel 97,
each change in the print quality setting forces Microsoft Excel to create a
new print job using that print quality setting.
NOTE: This behavior does not occur when you print the same worksheets in
earlier versions of Microsoft Excel.
WORKAROUND
To work around this behavior, make sure that all of the worksheets you are
printing use the same print quality settings. You can do this manually or
you can use a Visual Basic macro to change the print quality.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. The following Visual Basic macro ensures that all worksheets in a workbook
use the same print quality settings:
Sub SetPrintQuality()
For Each xSheet In ActiveWorkbook.Sheets
xSheet.PageSetup.PrintQuality = 600
Next xSheet
End Sub
This macro assumes that your printer is capable of printing at 600 dots per
inch (dpi). If your printer cannot print at this resolution, change the
value in the third line of the macro to an appropriate value for your
printer (for example, 150, 300, 600, or 1200).
After you run this macro, all of the worksheets use the same print quality
setting, and the behavior no longer occurs.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 6/19/2006 |
---|
Keywords: | kbprint KB168563 |
---|
|