Hi everyone,
The scope of what I am trying to do is this ... There are two sheets, one holds a list of serial numbers in column A (Sheet2), and the other is essentially a packing slip (Sheet1). When a serial number is used in Sheet1, the goal is to have it search for that serial number on Sheet2 and replace it with a blank.
The problem I've encountered is that I can't find anywhere on the net on how to make the search criteria be cell dependent.
If this is how you normally find text to replace ...
ActiveCell.Replace What:="123456789", Replacement:=" ", LookAt:=xlPart _
, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
How do I make it run so (in a crude sense) it functions as ... D5 being the cell that contains the serial number.
ActiveCell.Replace What:=D5, Replacement:=" ", LookAt:=xlPart _
, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Any ideas?
Thanks,
Bookmarks