Macro for Printing

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,561
Office Version
  1. 2021
Platform
  1. Windows
I need a macro the will print all the data in columns N to T. The range must include the last row of data in column S and the headers must be retained on all pages


Your assistance will be most appreciated


Howard
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi Gerald

My Apologies. Must have uploaded twice in error

Regards

Howard
 
Upvote 0
Er, sorry, THIS was the duplicate thread. The original had the solution, which seems to have been deleted.
 
Upvote 0
My bad Gerald. I deleted the other one because I didn't see any response to it. I must have deleted it just after you added a solution.
 
Upvote 0
Howard, see if this does it:

<font face=Tahoma><SPAN style="color:#00007F">Sub</SPAN> PrintNtoT()<br><br>    <SPAN style="color:#00007F">With</SPAN> ActiveSheet<br>        <SPAN style="color:#00007F">With</SPAN> .PageSetup<br>            .PrintTitleRows = "$1:$1"<br>            .PrintArea = Range([N1], Cells(Rows.Count, "T").End(xlUp)).Address<br>        <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">With</SPAN><br>        .PrintOut<br>    <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">With</SPAN><br>    <br>End <SPAN style="color:#00007F">Sub</SPAN></FONT>

And sorry for the confusion with the other post.
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,040
Members
448,543
Latest member
MartinLarkin

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