Cell border before page break

  • Thread starter Thread starter Pygmalion
  • Start date Start date
P

Pygmalion

Hello experts!

Is it somehow possible to tell Excel to put bottom cell border to the
last cell before each page break?

Thanks for the answer.

Regards.
 
try
Sub dopagebrk()
With ActiveSheet
For i = 1 To .HPageBreaks.Count
.HPageBreaks.Item(i).Location.Borders(xlEdgeBottom).LineStyle =
xlContinuous
Next i
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

Back
Top