+ Reply to Thread
Results 1 to 2 of 2

Active cell counting in particular print page (one sheet having different print area)

  1. #1
    Registered User
    Join Date
    11-24-2005
    Posts
    2

    Active cell counting in particular print page (one sheet having different print area)

    i have a excel sheel with different print pages separeted by print area like


    page1

    page2

    page3

    like that

    but i want to count the number of active cells on each print area (page).

    i know the function to count all acitves cells in a page (whole sheet)
    application.counta(range(a:a))

    expecting reply asap

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    you can do so:
    cellNumber = range(ActiveSheet.PageSetup.PrintArea).Cells.Count

    or, for a particular sheet, you can do so:
    cellNumber = range(sheets("Index1").PageSetup.PrintArea).Cells.Count
    and so you will have the number of cells in the print area of the sheets 'Index1'

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1