Paul Leopard wrote:
I appreciate your efforts and I see the worksheet you repaired is working just fine. When I compare it to my original that is not working I see no difference though.
There is a difference. As Werner mentioned, your 'Good sheet' worked because of a tricky, undocumented "feature". When you define a range and use inline evaluation like i:=0..3= , the range i is converted to a vector.
Try deleting the inline definition and see what happens.
In Werners sheet he have defined XT using a vector index. Type XT[i and see what happens.