VBA print settings related properties and methods

Source: Internet
Author: User

Print Setup instructions, the following are the default values.  withActiveSheet.PageSetup. PrintTitleRows=""                                'Worksheet print Title: Top header row (R). PrintTitleColumns =""                             'Worksheet print Title: Left Left title column (C)End  withActiveSheet.PageSetup.PrintArea=""                    'Worksheet print Area (A) withActiveSheet.PageSetup. LeftHeader=""                                    'Custom Header: Left (L). CenterHeader =""                                  'Header/Custom header: Medium (C). RightHeader =""                                   'Custom Header: Right (R). LeftFooter =""                                    'Custom footer: Left (L). CenterFooter =""                                  'Footer/Custom footer: Medium (C). RightFooter =""                                   'Custom footer: Right (R). LeftMargin = Application.inchestopoints (0.75)'Margins : Left (L) _1.9 cm. RightMargin = Application.inchestopoints (0.75)'Margins : Right (R) _1.9 cm. TopMargin = Application.inchestopoints (1)'Margins : Up (T) _2.5 cm. BottomMargin = Application.inchestopoints (1)'Margins : Lower (B) _2.5 cm. HeaderMargin = Application.inchestopoints (0.5)'Margins : Header (A) _1.3 cm. FooterMargin = Application.inchestopoints (0.5)'Margins : Footer (F) _1.3 cm. PrintHeadings =False                              'Worksheet print: Row number column label (L). PrintGridlines =False                             'Sheet Print: Grid lines (G). PrintComments = xlprintnocomments'Worksheet print Annotation (M): none/(at the end of the worksheet) xlprintsheetend/(as shown on the worksheet) Xlprintiace    . PrintQuality= the                                 'page Print quality (Q): 180/360 Dots. CenterHorizontally =False                         'Center margin: horizontal (Z). CenterVertically =False                           'Center margin: Vertical (V). Orientation = xlportrait'page Orientation: Portrait (T) xlportrait/Landscape (L) Xllandscape. Draft =False                                      'Worksheet Printing: By draft (Q). PaperSize = xlPaperA4'page paper Size (Z): A4. FirstPageNumber = xlautomatic'page Start Page: Automatic. Order = Xldownthenover'Worksheet Print Order: First row (D)/After column (V) Xloverthendown    . BlackAndWhite=False                              'Sheet Print: Monochrome printing (B). Zoom = -                                         'page magnification: 100% If you select a page scale, the following two items do not. . Zoom =False                                       'page Scaling: Not selected if you select the Adjustment page, this entry must be false and appears with the following two items. . FitToPagesWide =1                                 'page Zoom: Adjust to 1 page height. FitToPagesTall =1                                 'page Zoom: adjust to 1 page width. PrintErrors = xlprinterrorsdisplayed'Worksheet Print Error cell printed as (E): Display value/< blank > xlprinterrorsblank/--xlprinterrorsdash/#N/a Xlprinterrorsna
Endwith

 

VBA print settings related properties and methods

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.