Depends on what year you are. Some years can leave the solenoid plugged in and hooked to a vac source and it will tell the ECU it's still there and working. Others it won't do shit. If you have a 1997 you can get an ecu from AFX and they have removed the EGR check software all together.
There is a resistor you can use but i haven't figured it out yet. It doesn't remove the cel, just keeps it from coming back as often.