how to get a number of rows in a given page?

  • Thread starter Thread starter Gorr
  • Start date Start date
G

Gorr

automating excel 97
excel file is saved in page brake preview.
I'm opening the file programmaticaly and need to figure how many pages, and
how many rows on each page defined.
 
For Each s in Sheet
x = x +
LstRow = s.UsedRange.Offset
(s.UsedRange.Rows.Count - 1).
Resize(1).Ro
Debug.Print s.name & " Has " & LstRow & " Used Rows
Nex
Debug.print "Total number of sheets = " x
----- Gorr wrote: ----

automating excel 9
excel file is saved in page brake preview
I'm opening the file programmaticaly and need to figure how many pages, an
how many rows on each page defined

-
Thank
 

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