Run the code in break mode and check in which line it fails.

Or

Attach a sample workbook