Hello Terry,
To pickup where Mark left off. Yes, the nIndex does exist in the Variables tab as an integer variable, but the macro is still throwing the same error:
Undefined variable or the variable is the wrong type "%nindex%"
Macro Name: MedicalList-James
Line Number: 4