Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Worksheets("Sheet1").PageSetup.PrintArea
Using a combination of the suggestions so far:smart89 said:the print area was not set ,but it displayed 8 pages when print preview.How to get the area without setting print area?
Dim sPrintAreaAddress As String
sPrintAreaAddress = Worksheets("Sheet1").PageSetup.PrintArea
If sPrintAreaAddress = "" Then
sPrintAreaAddress = Worksheets("Sheet1").UsedRange.Address
End if