PrintTitleRows being removed

mikeymay

Well-known Member
Joined
Jan 17, 2006
Messages
1,632
Office Version
  1. 365
Platform
  1. Windows
I have a template file where a number of different size worksheets can be copied out to create a 'client' copy (basically everything removed other than the data in a flat file).

When the flat client file is created the PrintTitlteRows range seems to be removed.

I have tried to use the following to put into the client file after it is created
Code:
      Application.PrintCommunication = False

      wsSheet.PageSetup.PrintTitleRows = "$3:$5"
      
      Application.PrintCommunication = True
This is applied to every sheet to ensure that they all hold the same range to repeat but when I open the client file, this range is not in any of the output sheets.

I am completely lost as to what is happening here as when I look at the sheets to output when they are in the tempate, this range is specified to repeat.


TIA
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top