+ Reply to Thread
Results 1 to 3 of 3

CountIf syntax in VBA

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    CountIf syntax in VBA

    Hi,

    having some troubles with Countif in VBA over here.
    I am checking a range for duplicate entries from the bottom to the top and want to delete the first duplicate entry entire row. I changed the checking range from the whole column to all cells from G16 until the last entry of column G, but i receive a 1004 invalid number of arguments error. Did I miss something here? I am not really familiar with the countif syntax in vba.
    Please Login or Register  to view this content.
    thanks a lot!
    A2k

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: CountIf syntax in VBA

    You're trying to use a range of values for your condition, try using:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Re: CountIf syntax in VBA

    works great now, thank you very much!
    A2k

+ 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