We obtained the exact solution of the Schrödinger equation for a time-dependent harmonic oscillator model of a charged particle in a variable magnetic field, which is the semiclassical Gaussian wave packet centered around the classical guiding trajectory (p(subscript i), q(svbscript i)). The Gaussian wave packet presented here is well-localized in space and useful for determining various features of the classical-like wave packet.