A magnetic vortex core in a ferromagnetic circular nanodot has a resonance frequency originating from the confinement of the vortex core. By the micromagnetic simulation including the spin-transfer torque, we show that the vortex core can be resonantly excited by an ac (spin-polarized) current through the dot and that the resonance frequency can be tuned by the dot shape. The resistance measurement under the ac current successfully detects the resonance at the frequency consistent with the simulation.