Avoid self cast if auto cast is enabled (macro help)

That’s odd but if it works just fine for you that’s nice.

For ranks you need to put (rank x) behind the spell name for example

/cast Healing Wave(Rank 9)

Like this.

Or just copy it out of your spellbook when the macro editor is open shift click the spell you want to cast in that slot, and it will copy just that there.