+ Reply to Thread
Results 1 to 4 of 4

looping through data

  1. #1
    Forum Contributor
    Join Date
    10-03-2005
    Posts
    185

    looping through data

    I have two sheets of data. First sheet has a list of part numbers. Second sheet has part numbers in one column and projects in second column.

    So for each part number in first sheet, I need to look up that part number in second sheet and store the corresponding projects (more than one)associated with that part number in a variable in macro. Once I have project numbers associated with given part numbers in a variable I will look up each of those projects in another sheet to get other information on the project and process it further.

    Does anyone have any code that can loop through all the rows in first and second sheet and do something similar?

    Thank you very much in advance.

    Jay

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Have you tried the index() match() combination ?

    HTH
    Carim

  3. #3
    Forum Contributor
    Join Date
    10-03-2005
    Posts
    185
    Carim, Thanks for the reply but I don't know how to use worksheet functions in macro... I am a beginner on this VBA stuff.. do you have any examples from your past work... I tried looking up Index in help and couldn't find anything good.

    Jay

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Are you sure you need a macro just to lookup values...?

    Carim

+ 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