.PrintTitleRows

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello! I am having trouble with getting .PrintTitleRows to take a variable I
create that is equal to the row number I need. So instead of having:

.PrintTitleRows="$1:$1"

row_num = ActiveCell.Row
With ActiveSheet.PageSetup
.PrintTitleRows = row_num & row_num

only this does not work!! Any suggestions? Thanks in advance.
 
row_num & row_num produces "11". One way:

.PrintTitleRows = ActiveCell.EntireRow.Address
 
Hi

Try

..PrintTitleRows = "$" & row_num & ":" & "$" & row_num


Doug


Dr. M wrote in message
 
Back
Top