What you posted has xlUp not x1Up.

PS Can you add code tags when posting code?