Well, this is how you do it (I don't know what Arthur's was doing):
VB Code:
  1. X = Index Mod 8
  2. Y = Index \ 8