T
Todd Huttenstine
Dim rngJ As Range
Dim numcount3
numcount3 = Application.WorksheetFunction.CountA(Workbooks
("Book2.xls").Sheets("Resolutions").Range("AD:AD"))
For Each cell In Workbooks("Book2.xls").Sheets
("Resolutions").Range("AF2:AF" & numcount3)
Set rngJ = Workbooks("Book2.xls").Sheets
("Resolutions").Range("AE1:AE200").Find(Workbooks
("Book2.xls").Sheets("Resolutions").Range("C2")) 'where
lookup value
If Not rngJ Is Nothing Then
rngJ.Offset(0, -1).Resize(, 2).Delete Shift:=xlShiftUp
End If
Next
The above coe works however I want to add one more
functionality. I want the code to look not only in AF2 but
in the entire range of AF:AF and for each value it finds,
I want it to do the code I already have.
Thanx
Dim numcount3
numcount3 = Application.WorksheetFunction.CountA(Workbooks
("Book2.xls").Sheets("Resolutions").Range("AD:AD"))
For Each cell In Workbooks("Book2.xls").Sheets
("Resolutions").Range("AF2:AF" & numcount3)
Set rngJ = Workbooks("Book2.xls").Sheets
("Resolutions").Range("AE1:AE200").Find(Workbooks
("Book2.xls").Sheets("Resolutions").Range("C2")) 'where
lookup value
If Not rngJ Is Nothing Then
rngJ.Offset(0, -1).Resize(, 2).Delete Shift:=xlShiftUp
End If
Next
The above coe works however I want to add one more
functionality. I want the code to look not only in AF2 but
in the entire range of AF:AF and for each value it finds,
I want it to do the code I already have.
Thanx