Leandroarb
Board Regular
- Joined
- Oct 7, 2014
- Messages
- 157
Hi
I have a range in which the same code is repeated, but this code has another code called Priority. I need to go through the codes and build a string with the Priorities.
Exampe:
Code Priority String
10.......1........12
10 ......2........12
I try with this For Each:
But the result is:
Code Priority String
10.......1.........11
10.......2.........22
Thanks in advanced!
I have a range in which the same code is repeated, but this code has another code called Priority. I need to go through the codes and build a string with the Priorities.
Exampe:
Code Priority String
10.......1........12
10 ......2........12
I try with this For Each:
Code:
For Each celP In rngProt
If celP = Protocolo Then
str = str & Prioridade
End If
Next
But the result is:
Code Priority String
10.......1.........11
10.......2.........22
Thanks in advanced!
Last edited: