.printtitlerows

  1. T

    what is wrong with my code

    this code will print a selection with title rows only from page 2 it stops at this .PrintTitleRows = Selection.Rows("5:7") Sub printonlyselection() Dim lPages As Long lPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)") With ActiveSheet.PageSetup Selection.PrintOut From:=1, To:=1...
  2. A

    VBA .pageSetup error 1004

    Hi all, I'm working on a macro, and the .pagesetup object started breaking. Getting a run-time error "1004: Unable to return Left Margin Property of the pagesetup class." If I comment out the line, each successive page setup property breaks as well. However, .PrintTitleRows seems to work ok...
  3. R

    VBA code to modify a macro

    I have this macro in a set of workbooks: Sub print_sch3() Application.ScreenUpdating = False With ActiveSheet.PageSetup .PrintTitleRows = "8:$13" .PrintTitleColumns = "" End With Application.Goto Reference:="Print_sch3_school"...

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