Microsoft KB Archive/166818

From BetaArchive Wiki
Knowledge Base


PPT: Unable to Change the ActivePrinter Property With VBA

Article ID: 166818

Article Last Modified on 10/11/2006



APPLIES TO

  • Microsoft PowerPoint 98 for Macintosh
  • Microsoft PowerPoint 97 Standard Edition



This article was previously published under Q166818

SYMPTOMS

When you try to change the ActivePrinter property using Microsoft Visual Basic for Applications code, you receive the following error message:

Run-Time error '450'
Wrong number of arguments or invalid property assignment

If you click Debug, the Visual Basic Editor highlights the line with which you are trying to assign a new printer.

CAUSE

The ActivePrinter property is read-only in the PowerPoint object library and cannot be changed programmatically.


Additional query words: OFF97 ppt97 8.0 8.00 ppt8 VBA VBE macppt programmatically

Keywords: kbcode kbdtacode kberrmsg kbprb kbprogramming KB166818