Use custom code to get a range from position.