TIA,
Matt
see the dropdownlist for a pagenumber
Regards Ron
"Matt" <mcim...@itwanchor.com> schreef in bericht
news:e70d01c2116c$451c06c0$35ef2ecf@TKMSFTNGXA11...
"Ron de Bruin" <ronde...@kabelfoon.nl> wrote in message
news:uYs0x6XECHA.2572@tkmsftngp05...
He need VBA to do it
maybe he can make somthing with this
it will give the number from the page where the activecell is.
he can assign the NumPage to a cel on the sheet
Regards Ron
Sub PrintCurrentPage()
Dim VPC As Integer, HPC As Integer
Dim VPB As VPageBreak, HPB As HPageBreak
Dim NumPage As Integer
If ActiveSheet.PageSetup.Order = xlDownThenOver Then
HPC = ActiveSheet.HPageBreaks.Count + 1
VPC = 1
Else
VPC = ActiveSheet.VPageBreaks.Count + 1
HPC = 1
End If
NumPage = 1
For Each VPB In ActiveSheet.VPageBreaks
If VPB.Location.Column > ActiveCell.Column Then Exit For
NumPage = NumPage + HPC
Next VPB
For Each HPB In ActiveSheet.HPageBreaks
If HPB.Location.Row > ActiveCell.Row Then Exit For
NumPage = NumPage + VPC
Next HPB
MsgBox "Page number of the active cell = " & NumPage
End Sub
"ikr" <rip...@btinternet.com> schreef in bericht
news:ejk6ktYECHA.2324@tkmsftngp03...
Regards,
Matt