Target macro

Is there a way to have a macro target a mob then use say vampiric touch then target next mob and vamp again then rinse
I know there was one back in the day for my boomkin called chicken something that targets the moonfires then repeat n rinse