If you are trying to determine the number of pages, then you can use the
following VBA statement to determine the number of pages in the active
worksheet.
Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
Alternatively, you can create a named range called NumberOfPages for
example, and set the Refers To field to
=GET.DOCUMENT(50)
Then, you can retrieve the number of pages using the following command:
=NumberOfPages
Regards,
Brian Small
________________________________
"David" <ad...@sogutsenseramik.com.tr> wrote in message
news:OEe1Ly2cCHA.2324@tkmsftngp08...