Hello,
I have been struggling to figure this out. I have column AA which contains a list of cells. Some of those cells contain specific words, and I would like to select & copy those cells. Here is what I have so far, that is not working:
Any help would be appreciated!
I have been struggling to figure this out. I have column AA which contains a list of cells. Some of those cells contain specific words, and I would like to select & copy those cells. Here is what I have so far, that is not working:
VBA Code:
Dim ranCell As Range
Dim rRng4 As Range
Dim lastceAA As Range
lastceAA = ActiveSheet.Range("AA" & Rows.Count).End(xlUp).Row
For Each ranCell In Range("AA1" & lastceAA)
If ranCell.Value = "*January*" Or_
ranCell.Value = "*February*" Or _
ranCell.Value = "*March*" Or _
ranCell.Value = "*April*" Or _
ranCell.Value = "*May*" Or _
ranCell.Value = "*June*" Or _
ranCell.Value = "*July*" Or _
ranCell.Value = "*August*" Or _
ranCell.Value = "*September*" Or _
ranCell.Value = "*October*" Or _
ranCell.Value = "*November*" Or _
ranCell.Value = "*December" Then
IrRng4.Select
Else
Set rRng4 = Application.Union(rRng4, ranCell)
End If
End If
Next ranCell
Selection.Copy
Any help would be appreciated!