I've used it successfully in the past but now, I get the same error:
ERROR: Object variable or With block variable not set