Is it possible to pass variables between macros?

If you want an example have a look at this thread

It is a fully documented subroutine macro together with an example macro that calls it. There are others to be found such as this one

Which also gives a subroutine and an example macro that calls it.

I’m away from my Mac so I can give only limited help, but let us know how you get on anyway!