A device and a method for treating substrates in a receptacle containing a treatment fluid, comprising a lowering and lifting device for said substrates. The introduction and extraction times for the substrates are optimised by modifying the lifting speed of the lowering and lifting device according to the dimensions of the substrates or by modifying the lifting height of the lowering and lifting device according to the dimensions of said substrates.