i got chriso's code to work however it only runs through once, rather than the amount of times needed. even without the -1 it does the same thing
code as follows field = UBound(FieldArray())
If field > UBound(editedField()) Then editedvalue = UBound(editedField())
For field = 0 To editedvalue...