Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.25 KB

Excel.PageSetup.PrintTitleColumns.md

File metadata and controls

49 lines (29 loc) · 1.25 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PageSetup.PrintTitleColumns property (Excel)
vbaxl10.chm473097
vbaxl10.chm473097
Excel.PageSetup.PrintTitleColumns
860cf212-0fbb-f3ec-c9ce-a0df57b39b7f
05/03/2019
medium

PageSetup.PrintTitleColumns property (Excel)

Returns or sets the columns that contain the cells to be repeated on the left side of each page, as a String in A1-style notation in the language of the macro. Read/write String.

Syntax

expression.PrintTitleColumns

expression A variable that represents a PageSetup object.

Remarks

If you specify only part of a column or columns, Microsoft Excel expands the range to full columns.

Set this property to False or to the empty string ("") to turn off title columns.

This property applies only to worksheet pages.

Example

This example defines row three as the title row, and it defines columns one through three as the title columns.

Worksheets("Sheet1").Activate 
ActiveSheet.PageSetup.PrintTitleRows = ActiveSheet.Rows(3).Address 
ActiveSheet.PageSetup.PrintTitleColumns = _ 
 ActiveSheet.Columns("A:C").Address

[!includeSupport and feedback]