PageSetup.PrintArea Property
Returns or sets the range to be printed, as a string using A1-style references in the language of the macro.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Property PrintArea As String
Get
Set
'Usage
Dim instance As PageSetup
Dim value As String
value = instance.PrintArea
instance.PrintArea = value
string PrintArea { get; set; }
Property Value
Type: System.String
Remarks
Set this property to False or to the empty string ("") to set the print area to the entire sheet.
This property applies only to worksheet pages.