PrintTitleRows

User avatar
sal21
PlatinumLounger
Posts: 4343
Joined: 26 Apr 2010, 17:36

PrintTitleRows

Post by sal21 »

How to repeat titletrow from A1 to M1, in printer setup?
In vb6 naturaly.

User avatar
HansV
Administrator
Posts: 78391
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: PrintTitleRows

Post by HansV »

Assuming that the variable WS is set to the worksheet that you want to print:

Code: Select all

    WS.PageSetup.PrintTitleRows = "$1:$1"
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4343
Joined: 26 Apr 2010, 17:36

Re: PrintTitleRows

Post by sal21 »

HansV wrote:
13 Nov 2021, 15:02
Assuming that the variable WS is set to the worksheet that you want to print:

Code: Select all

    WS.PageSetup.PrintTitleRows = "$1:$1"
OPS...

error 438.

but before to set this via code i make this in Excel...

i cannot set via setting print!!!

all action are disabled!

see image
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78391
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: PrintTitleRows

Post by HansV »

You must select Print Titles (Stampa titoli) from the Page Layout (Layout di pagine) tab of the ribbon. Not from File > Print.
See Ripetere righe e colonne come titoli o etichette su ogni pagina stampata
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4343
Joined: 26 Apr 2010, 17:36

Re: PrintTitleRows

Post by sal21 »

HansV wrote:
13 Nov 2021, 16:03
You must select Print Titles (Stampa titoli) from the Page Layout (Layout di pagine) tab of the ribbon. Not from File > Print.
See Ripetere righe e colonne come titoli o etichette su ogni pagina stampata
same effect always in grey, and disabled...

have you tested with my WB?

User avatar
HansV
Administrator
Posts: 78391
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: PrintTitleRows

Post by HansV »

Yes:

S0876.png
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4343
Joined: 26 Apr 2010, 17:36

Re: PrintTitleRows

Post by sal21 »

HansV wrote:
13 Nov 2021, 16:45
Yes:


S0876.png
ok tks and sorry.
possible causes?

User avatar
HansV
Administrator
Posts: 78391
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: PrintTitleRows

Post by HansV »

Have you tried closing and reopening the workbook?
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4343
Joined: 26 Apr 2010, 17:36

Re: PrintTitleRows

Post by sal21 »

HansV wrote:
13 Nov 2021, 17:42
Have you tried closing and reopening the workbook?
PERPAHS corrupt...

i have used .xlsx file, instead .xls, and now work.

tks

User avatar
HansV
Administrator
Posts: 78391
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: PrintTitleRows

Post by HansV »

Good to hear that
Best wishes,
Hans