Hi,
I have a spreadsheet that varies often. The first tab as the changing list ("Lun Masking") whilst the second is the definitive list ("Un Assigned Volumes").
The numbers i'm trying to compare have been converted to strings and range from 0000 to 0439 in hex.
I'm trying to create some code to run through a column in ("Lun Masking") and when it matches a number in ("Un Assigned Volumes") it inputs a string value in the next free column which is the L row in the loop position.
My question is: how can i get it 'IF' statement to find the L column in the second loop. And is there an easier way of achieving this?
Thanks in advance
James
I have a spreadsheet that varies often. The first tab as the changing list ("Lun Masking") whilst the second is the definitive list ("Un Assigned Volumes").
The numbers i'm trying to compare have been converted to strings and range from 0000 to 0439 in hex.
I'm trying to create some code to run through a column in ("Lun Masking") and when it matches a number in ("Un Assigned Volumes") it inputs a string value in the next free column which is the L row in the loop position.
Code:
For Each c In Worksheets("Lun Masking").Range("D5:D310").Cells
Debug.Print ("LunMasking " + c)
For Each v In Worksheets("Un Assigned Volumes").Range("A10:A1010").Cells
If c.Value = v.Value Then
'ActiveCell.Font.Bold = True
Worksheets("Un Assigned Volumes").Cells
Exit For
End If
Next
Next
My question is: how can i get it 'IF' statement to find the L column in the second loop. And is there an easier way of achieving this?
Thanks in advance
James