+ Reply to Thread
Results 1 to 3 of 3

How can i use UsedRange.Rows.Count if any blank rows embeded into the sheet

  1. #1
    Registered User
    Join Date
    04-13-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    19

    How can i use UsedRange.Rows.Count if any blank rows embeded into the sheet

    Hi,
    I am using below statement to count the rows with data in a sheet in excel --- 'how many rows are used in the Target worksheet TrgusedRowsCount = TrgcurrentWorkSheet.UsedRange.Rows.Count

    But if that sheet contains some blank rows in between ,then how can i exclude that number of blank rows and get the eaxct used rows count in the sheet.

    Please help me on this.

    Thnaks-Amar

  2. #2
    Registered User
    Join Date
    03-16-2004
    Location
    UK
    MS-Off Ver
    2003
    Posts
    85

    Re: How can i use UsedRange.Rows.Count if any blank rows embeded into the sheet

    Something like this...

    Please Login or Register  to view this content.
    ... would give the number of non-blank rows in the range.
    Phil

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: How can i use UsedRange.Rows.Count if any blank rows embeded into the sheet

    Please Login or Register  to view this content.

+ 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