Hello all,

First of all, I want to thank you guys, for this forum, and let you know that it helped me out quite a few times regarding VBA and macros. Since I am fairly new to VBA, and there are a lot of things I still need to learn, today I am stuck with issue. Straight to the topic:

I have an excel file that contains 2 sheets. Sheet1 called Data and Sheet 2 Called Form. On sheet2(Form) there is a Form that the User needs to fill in the required cells with information. I am trying to make this as automated as possible. I have a Userform in which he can manually input the datas. When a specific cell is filled in, I want excel too look for that value on the Data sheet, lookup its unique ID, and return all of the values with the same unique ID into the Form sheet.

Because of company policy i can't show the exact datas, so I created a similar one for reference.

My columns are from A to D, A being ID number, B name, C color and D box amount.

On the Form Sheet, the user input data is on cell D25, and the returned value starts from H25 downwards, depending how many unique ID's the item has.

If the User types in Baloon type 2, I need excel to check the ID number,and return all of the values from collumn C and D. Note that these rows are dynamic, it can have 5 rows with the same ID or 25 or even more.

[TABLE="border: 0, cellpadding: 0, cellspacing: 0, width: 260"]

ID

[/td]Name

[/td]Color

[/td]Box Amount

[/td]1

[/td]Baloon type 2

[/td]red

[/td]5

[/td]1

[/td]green

[/td]10

[/td]1

[/td]blue

[/td]20

[/td]1

[/td]white

[/td]15

[/td]1

[/td]yellow

[/td]30

[/td]1

[/td]orange

[/td]8

[/td]2

[/td]Ribbon type 4

[/td]black

[/td]5

[/td]2

[/td]yellow

[/td]10

[/td]2

[/td]red

[/td]15

[/td]2

[/td]white

[/td]8

[/td]2

[/td]purple

[/td]9

[/td]2

[/td]grey

[/td]12

[/td]2

[/td]orange

[/td]10

[/td]2

[/td]green

[/td]7

[/td]

[/TABLE]

I hope it is understandable, and thank you in advance!