Help with macro

There’s a number of variations in the pins, with descriptions.