+ Reply to Thread
Results 1 to 4 of 4

.Find Method results issue...

  1. #1
    Registered User
    Join Date
    05-21-2007
    Posts
    79

    .Find Method results issue...

    I'm trying to use the Find method to collect data from multiple sheets into one sheet, in a table. Right now, the macro I've written attempts to check cell row headings on individual sheets with the list of all possible row headings on the main sheet, and then correctly inserts the corresponding entry from the individual sheet into its spot on the main sheet.

    However, I'm having issues with row headings like BBB+, BB+, and BB. Those are all possible row headings, but when I run the Find method, BB+ and BB are listed as matches to BBB+, and their corresponding entries are written over one another in the wrong row. I tried setting MatchCase to True, but it doesn't seem to account for this problem.

    Is there a way to get Find to match BB+ with BB+ and BB with BB instead of both with BBB+?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try setting Lookat to xlWhole
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    05-21-2007
    Posts
    79
    Ah, there we go. That's much better. Thanks!

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    no problem

+ 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