+ Reply to Thread
Results 1 to 3 of 3

Number of cells found by .Find/.FindNext

  1. #1
    Registered User
    Join Date
    05-07-2009
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    15

    Number of cells found by .Find/.FindNext

    Hello, I seem to have run into a problem here. I'm trying to use the .Find and .FindNext functions to find how many cells in Worksheet("WAS") have the same value as the ActiveCell (B3 in this case) on the Worksheet("DDS").

    Basically i'm just trying to figure out how many times this sub goes through the Do While loop. However, "tick" keeps coming back as a value of 1. I know there's something I must be doing wrong or something i'm not allowed to do but i'm still pretty new at this.

    ----Edit: I figured out that .Find does not include cells that are formatted with ";;;". I made them to General but now the macro just locks up.

    Here's the code:

    Please Login or Register  to view this content.

    TIA -- Chris
    Last edited by Falantar; 05-08-2009 at 11:18 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Number of cells found by .Find/.FindNext

    Could you not simply use COUNTIF ?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-07-2009
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Number of cells found by .Find/.FindNext

    Yep, I didn't think about that. Thank you! I have about 1 week experience with VBA so I'm still getting used to all the functions.

    Much appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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