3,887 questions
First, when you get the error, click on Debug to find the line of macro code that generated the error.
Then show us that line plus enough preceding lines to establish some context. It would also help if yu show us the declarations for the variable in question.