The "Out of Range" message on the monitor means that the PC is sending video signals that are outside of the range of options for the monitor.
Usually, this is the video refresh rate.
Do you get this error even on POST?
Or just when Windows loads?
I have run into a number of older monitors that do not support the default refresh rate of Windows XP.
In order to change the refresh rate to a "standard" rate, you may need to connect a higher quality monitor to the system, and then set the display to a low resolution and color depth.
You may even want / need to change the monitor type to "standard VGA" prior to shutting down and connecting the target monitor.
Chas