Attached is the current code.
- Code: Select all
Sub myVOC_ASST()
Dim LastRow As Integer
Dim i As Integer
Dim erow As Integer
Worksheets("Referrals").Select
erow = ActiveSheet.Range("B" & Rows.Count).End(xlUp).Row
For i = 2 To erow
Worksheets("Referrals").Select
If Cells(i, 13) = "VR" Then
Cells(i, 2).Select
Selection.Copy
Worksheets("VOC_ASST").Select
erow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 1).Row
ActiveSheet.Cells(i, "A").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, Skipblanks:=True, Transpose:=False
Application.CutCopyMode = False
End If
Next i
ActiveWorkbook.Save
Sheets("VOC_ASST").Select
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("A1").Select
Sheets("Referrals").Select
End Sub
I have been working with people from 'excel-l@Groups.ITtoolbox.com', but because of my limited (non-formal training)knowledge of VBA, I am having limited success. Could you point me in the right direction. Thank you for your assistance