Results 1 to 4 of 4

Count of Rows in Range ..... does not seem correct

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Count of Rows in Range ..... does not seem correct

    I have the following macro (see enclosed).

    In the macro i attempt to determine the number of rows via these code steps



    MsgBox ("rng rows count is     " & rngSourceData.Rows.Count)
    MsgBox ("rng cols count is   " & rngSourceData.Columns.Count)

    But for some reason the counts are 6 and 6 and i expected 20 and 6.

    Any ideas
    Attached Files Attached Files

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