We introduce a new design and development of a compound refractive X-ray zoom lens for energy scans in X-ray microscopy. Energy scans are, in principle, equivalent to radial scans in the reciprocal space for X-ray diffraction. Thanks to the absence of sample or detector motions, energy scans are better suited for microscopy, which requires high stability. In addition, close to the absorption edge of an element, energy scans can yield chemical information when coupled with resonant effects in either full field diffraction X-ray microscopy (FFDXM) or X-ray absorption near edge structure (XANES) microscopy. Here, we demonstrate the concept by using a customized compound refractive X-ray zoom lens for 11 keV near the Ge Kαedge. The working distance and magnification were kept constant during the energy scans by adapting the lens composition on switchable zoom lens fingers. This alleviates the need to reposition the lens while changing the energy and makes quantitative analysis more convenient for FFDXM. The fabricated zoom lens was characterized and proven suitable for the proposed measurement.