$ 0 0 Try until xrow >= last row used If that doesn't work then be more specific on why/what doesn't work.