Do you know anything about the code you posted and/or what MyRange is meant to be?

Is there code elsewhere that defines it?