We here present a method based on DANTE pulses and homonuclear dipolar decoupling scheme to invert selectively any desired resonance in a proton spin system under magic-angle spinning. Experimental results are reported on a sample of L-histidine路HCl路H2O at magic-angle spinning frequencies of 15 and 60 kHz. The results are also substantiated numerically.