Provera for spotting between periods?

Has anyone been prescribed Provera to stop irregular spotting between periods? Did it work for you?