Microsoft KB Archive/51357

From BetaArchive Wiki

Excel Macro to Print Many Print Areas



The information in this article applies to:


  • Microsoft Excel for Windows, versions 2.x, 3.0, 4.0, 5.0
  • Microsoft Excel for OS/2, versions 2.2, 3.0





SUMMARY

The following macro lets you print different parts of a spreadsheet previously defined by a name without having to reset the print area using the Set Print Area command in the Options menu. The sheet containing the ranges to be printed must be the active sheet when executing the macro:


   A1: PrintAreas
   A2: =INPUT("Enter the name of the print area to print: ",2)
   A3: =SELECT(DEREF(A2))
   A4: =SET.PRINT.AREA()
   A5: =PRINT()
   A6: =RETURN() 



Note: the information above also applies to version 5.0 only when using version 4.0 macro language.

Additional query words:

Keywords :
Version :
Platform :
Issue type :
Technology :


Last Reviewed: March 15, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.