1. Door Won't Latch/Close Properly:
* Check the striker plate: The striker plate is the metal piece on the doorjamb that the latch bolt engages. This is often the source of problems. It may be:
* Loose: Tighten the screws holding it in place.
* Bent or damaged: If bent, try gently bending it back into alignment. If damaged, it will need replacement.
* Misaligned: This is the most likely problem. You'll need to adjust the striker plate's position. There are usually two or three screws holding it. Loosen these and carefully adjust the plate's position slightly to ensure proper alignment with the latch bolt. You might need to experiment with small adjustments, closing the door after each minor tweak, to find the sweet spot.
* Check the latch mechanism: The latch mechanism itself might be faulty. This requires more involved inspection, potentially removing the interior door panel to access it. Look for broken parts or binding. If the problem is here, repair or replacement of the latch may be necessary.
* Check the door hinge pins: Loose or worn door hinge pins can affect door alignment, preventing the latch from engaging properly. Check for play and tighten or replace as needed.
2. Door Latch is Too Tight:
* Adjust the striker plate: If the latch is too tight, you can loosen the striker plate screws slightly and adjust the plate inwards (away from the door). This will give the latch bolt slightly more play.
3. Door Doesn't Close Securely:
* Adjust the latch bolt: Some latches have adjustment mechanisms on the latch itself, allowing for slight lengthening or shortening of the bolt. Refer to a repair manual for your specific vehicle model to see if this is possible.
* Adjust the striker plate: A misaligned striker plate can also cause this. Adjust it slightly to ensure the latch engages fully.
* Door alignment: As mentioned above, worn or loose hinges can cause alignment issues.
Important Considerations:
* Repair Manual: A repair manual specific to your 1999 Ford Ranger XLT is highly recommended. It will provide detailed diagrams and instructions, making the adjustment process much easier and safer.
* Safety: Always disconnect the battery's negative terminal before working on any electrical components of your car.
* Patience: Finding the correct adjustment often requires patience and several small adjustments.
If you're uncomfortable working on your car yourself, it's best to take it to a qualified mechanic. Improper adjustments can lead to security issues or further damage.