i have a 300E-24V with a 5 speed gearbox
it´s perfect for the 24V as you will allways be in the right rpms.
the 4 speed is not designed for the high rpm 24Valve edition and therefore the rpm drops a litle to much in every gear for the 24Valve M104 Engine to my opinion.
The reason the 500E only came with the 4 speed is because the 500E useses the gearbox from the S class and they where never made in 5 speed at that time. they came only in the newere model after the W126. i think.
To your question:
The 5 speed auto box is also hadraulic made, it´s only the last 5 gear that is controled elektronikly and thats your biggest swap problem.
you also have to change your speedo instrument because there are 2 plugs at the bag of the speedo and they are not there on yours i think.
the one plug controles changing in to last 5 gear.
if you remove the plug it will never change into 5 because it seems to the gearbox that the car is running 0 Mph.
The cable of the plug is the one that goes to your 5 speed gearbox (very simply to aply)
and the other plug seems to controle the auto pilot because it will not work if that plug is out either but that you wont have to worry of i think.
And then the ECU has a different setup to as descriebed before but this i think you can just change from the other car.
To my opinion its worth the swap because of the shortere gear intervals, leving the engine to stay in the high rps under hard acceleration with way quickere acc.
Standart your car is 0-60 in 8 sec. with the 5 speed. it will do it in 7 sec do to the lower 1. gear.
1 gear changing allready at 37 mph/ 60 Kph at 7K,rpm and with the 4 speed it changeing at 45 Mph/72 Kph at 7K,rpm i think.
but you have to make the job yourself otherwise its not worth the effort.
Sorry for my english (im from denmark

)
I drive a 1991 W124 BRABUS 3.6-24 with 5 speed Aut. 285 BHP it´s a lot of fun

you can check it uot here.
http://www.bilgalleri.dk/html/gal_visbil.asp?ID=69175