Macro that targets enemy with lowest hitpoints?

Hi All,

Is there a macro that upon clicking, it auto makers the closest enemy, say within 40 yards, with lower hit points?

Thanks!