You should be able to use the TopLeftCell and BottomRightCell properties of the shape objects.