xyga1998
New Member
- Joined
- Feb 17, 2018
- Messages
- 12
Greetings!
If anyone can help me with a VBA partial code or if anyone can tell me what to read so I can accomplish this. I can't figure out anything for the moment. The general idea is to put values of Sheet 1 column B(Type) in Sheet 2 where ID-s should match and also the rounds. I don't want to make a code for each ID (as there are a lot and may change) so it must automatically look for it like an example I found as below:
In Sheet1 one specific ID may appear multiple times, but only once in Sheet2. The 3-rd figure shows what I need to achieve if the explanations is not good. Also I'm trying to avoid formulas in cells.
Any suggestions?
If anyone can help me with a VBA partial code or if anyone can tell me what to read so I can accomplish this. I can't figure out anything for the moment. The general idea is to put values of Sheet 1 column B(Type) in Sheet 2 where ID-s should match and also the rounds. I don't want to make a code for each ID (as there are a lot and may change) so it must automatically look for it like an example I found as below:
Code:
For Each cell In Sheets("Sheet2").UsedRange.Columns("A:A").Cells If cell <> "" And cell.Row <> 1 Then
Set roun = Sheets("Sheet1").Columns("A:A").Find(What:=cell.Value, LookIn:=xlFormulas, LookAt:=xlPart, _
SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=True)
In Sheet1 one specific ID may appear multiple times, but only once in Sheet2. The 3-rd figure shows what I need to achieve if the explanations is not good. Also I'm trying to avoid formulas in cells.
Any suggestions?