auto.pilot
Well-known Member
- Joined
- Sep 27, 2007
- Messages
- 734
- Office Version
- 365
- Platform
- Windows
I have up to 1,000 entries (column A) on my Output worksheet. Some of them (100 or less) are in bad format or simply wrong. In a separate table on my Lookup worksheet, column A is populated with 'bad' entries that match the bad entries on the Output worksheet. Column B is populated with 'good' entries.
When working with smaller data sets and only one bad data point, I have used the following bit of code, which references the Output worksheet, column A. I know this is not good practice, since it can't be easily scaled.
I am seeking a VBA method to replace the bad entries on my Output worksheet based on columns A & B in my Lookup table.
How would I do this?
Thanks in advance for all replies.
Jim
When working with smaller data sets and only one bad data point, I have used the following bit of code, which references the Output worksheet, column A. I know this is not good practice, since it can't be easily scaled.
Code:
On Error Resume Next
For Each Rng In Range("A4:A" & La)
If Rng.Value = "6070000000" Then
Rng.Value = "'6071143E3"
End If
Next
I am seeking a VBA method to replace the bad entries on my Output worksheet based on columns A & B in my Lookup table.
How would I do this?
Thanks in advance for all replies.
Jim