+ Reply to Thread
Results 1 to 2 of 2

Finding data using .Cells.Find

  1. #1
    Registered User
    Join Date
    05-26-2010
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    31

    Finding data using .Cells.Find

    Back again :-)

    I thought I understood the syntax of .Cells.Find, but my code is proving me wrong.

    Please Login or Register  to view this content.
    When I run this, it _should_:
    1) clear out existing data (which it does)
    2) go through a series of columns that contain data (which it does)
    3) in each column, go through line by line, and see if the data appears on another sheet (which it does _not_)
    4) if it finds the data, skip to the next entry. If not, copy the data over (which it does, but since it doesn't seem to find the data in the other sheet, all the data gets copied over)

    Where did I go wrong?

    Thanks!
    Last edited by GordonPSmith; 12-14-2011 at 07:28 PM.

  2. #2
    Registered User
    Join Date
    05-26-2010
    Location
    Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Finding data using .Cells.Find

    I think I've worked it out.

    The cells.find command looks against data in column F:F. However, the cells containing that data (for reason of layout) were actually merged cells between columns F and G. Once I changed the find range from F:F to F:G, it seemed to straighten out.

    Back to the coal mines of programming...

+ 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