5 pts.
 Place Holder
I have part numbers that are in the form of 12345678-001. I am trying to write a macro that will search through the 13000 lines of part numbers and enter a revision level next to it. I want it to only look at the first 8 numbers (before the "-"). This is what I currently have: Dim Timer As Integer Timer = 1 While (Timer < 12755) If (ActiveCell = "12414308-017") Then ActiveCell.Offset(0, 1).Range("A1").Select ActiveCell = "B" ActiveCell.Offset(1, -1).Range("A1").Select Timer = Timer + 1 Else ActiveCell.Offset(1, 0).Range("A1").Select End If Timer = Timer + 1 Wend End Sub

Software/Hardware used:
ASKED: October 1, 2008  7:21 PM
UPDATED: October 1, 2008  7:38 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _