+ Reply to Thread
Results 1 to 3 of 3

search column "A" for every occurrence of the current part number cont.

  1. #1
    Registered User
    Join Date
    11-14-2007
    Posts
    4

    search column "A" for every occurrence of the current part number cont.

    Ok, I guess I need more help than I thought.

    This is what I have molded the previous code (http://www.excelforum.com/showthread.php?t=622975) into:

    Please Login or Register  to view this content.
    Basically, I have changed it so that I can choose what columns I want to
    compare to, grab data from, and where to dump the data. The reason I
    need to tell it where to get the info, is because the sheets that I deal
    with are not all the same. The example provided is a "Very Clean"
    version of what I have to deal with.

    What I would really like this to do is automatically run through the
    whole list. Once it spits out the data on "C2" for example, it moves
    onto C3.. C4 until it hits the last "selected" cell.

    Again, Thank you for all of your help!
    Last edited by VBA Noob; 11-21-2007 at 03:02 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Zombie, stick to the original post until the question is resolved!

    Looking at your code, using a loop is less efficient than using the .Find method & .FindNext ( see: http://www.excelforum.com/showthread.php?t=623830.

    I also can't see why you are declaring variables as Variants when they are Strings or Longs, Variants are slower.
    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
    11-14-2007
    Posts
    4
    The original post was closed on me. I tried to paste the code twice without using the code brackets.

+ 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