Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Am Wed, 21 Aug 2013 11:20:26 +0100 schrieb divya nila: I want to add Page border (for four sides) around each page in the spreadsheet of excel. My excel is having multipages in one spreadsheet and it is having nearly 6 spreadsheets. I have used PageBreaks to determine last row of a page but the pagebreak is 0 if i have only one page in a spreadsheet. So i want to know how to determine the last row of a page. try: Sub PageBreak() Dim intHPB As Integer With ActiveSheet If .HPageBreaks.Count = 0 Then .Cells(65, 1) = "Test" MsgBox .HPageBreaks(1).Location.Row - 1 .Cells(65, 1).Clear End With End Sub Regards Claus B. -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How excel determine how many rows fit in to every page? | Excel Programming | |||
To determine that cell is on top of page | Excel Programming | |||
How to programmatically determine actual page count in Excel 2003? | Excel Programming | |||
Determine last row before end of page on worksheet | Excel Programming | |||
Determine page which row will print on | Excel Programming |