If the pin number is the same then place the new part directly over the previous one and it will be replaced.
Another option is to place the new part close to the previous one , add the wires for one component to the other and then delete the old part.
Alex
---------- Post added at 17:49 ---------- Previous post was at 17:46 ----------
Another option is to place junction dots (third icon on the left side bar) close to the old part wires , then when you delete the existing part you will only loose the connection wires up to the dot junctions and you can place and connect the new part.