We report here on the method we developed to build a lens table for a four-element electrostatic transfer lens operated together with a double toroidal electron energy analyzer designed by one of us, and whose original design and further improvements are described in detail in Miron et al. [Rev. Sci. Instrum. 68, 3728 (1997)10.1063/1.1148017] and Le Guen et al. [Rev. Sci. Instrum. 73, 3885 (2002)10.1063/1.1511799]. Both computer simulations and laboratory instrument tuning were performed in order to build this lens table. The obtained result was tested for a broad range of electron kinetic energies and analyzer pass energies. Based on this new lens table, allowing to easily computer control the spectrometer working conditions, we could routinely achieve an electron energy resolution ranging between 0.6% and 0.8% of the analyzer pass energy, while the electron count rate was also significantly improved. The establishment of such a lens table is of high importance to relieve experimentalists from the tedious laboring of the lens optimization, which was previously necessary prior to any measurement. The described method can be adapted to any type of electron/ion energy analyzer, and will thus be interesting for all experimentalists who own, or plan to build or improve their charged particle energy analyzers.