Excel macro to specify rows and columns to include in printouts

  • Thread starter Generic Usenet Account
  • Start date
G

Generic Usenet Account

Is there an Excel macro that simulates the effect of specifying the
rows and columns to repeat in a printout? I am looking for something
that simulates the following operations:

1) Page Setup->Sheet [Tab]->Rows to repeat at Top
Highlight the rows

2) Page Setup->Sheet [Tab]->Columns to repeat at Left
Highlight the columns


Thanks,
Gus
 
J

JulieD

Hi Gus

like this:

sub setrepeats()
With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$1"
.PrintTitleColumns = "$A:$A"
End With
end sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top