Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ralf,
This would work if you don't have vertical page breaks.. Private Sub CommandButton1_Click() Dim obj As Object Dim intRow As Integer Dim i As Integer intRow = ActiveCell.Row i = 1 For Each obj In ActiveSheet.HPageBreaks If obj.Location.Row intRow Then MsgBox i & " is the current page number." Exit Sub End If i = i + 1 Next End Sub Hope that helps. -Brad -----Original Message----- Hi, how can i get the pagenumber of the selected cell? thanks for any help Ralf merry christmas from germany! . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Row select mode to highlight active row of active cell | Excel Discussion (Misc queries) | |||
set the background color of the current cell(active cell) | New Users to Excel | |||
referring to formula in a non active cell from active cell | Excel Discussion (Misc queries) | |||
HOW TO COPY 480 ACTIVE E-MAIL ADDRESSES CLM "G" ON AN ACTIVE EXCE. | Excel Discussion (Misc queries) | |||
pagenumber | Excel Programming |