Hi,
and that the cell content in column E only is to be cleared if it doesn't have 'Volunteer & Internship'
thats done here:
If .Cells(lngRow, 5).Value <> "Volunteer & Internship" Then .Cells(lngRow, 5).Value = vbNullString
It doesn't seem to specify anywhere that this should be done in Column E
That's my mistake, did it for column A, here is it for column E in the current activated worksheet
The column is specified as the index number of the column, 5 for E
Option Explicit
Sub Ministry_Info_Organization()
Dim lngRow As Long
With ActiveSheet
For lngRow = 1 To .Cells(.Rows.Count, 5).End(xlUp).Row
If .Cells(lngRow, 5).Value <> "Volunteer & Internship" Then .Cells(lngRow, 5).Value = vbNullString
Next lngRow
End With
End Sub
it's running from row 1 till the last filled row in column E
Regards
Bookmarks