Hi,
As per the limited information that you've provided, these are the methods I'd suggest you try-
- Make sure the names of any controls on your form, such as textboxes and buttons, adhere to naming conventions. Spaces and other special characters should not be used in control names. For control names with multiple words, use underscores.
- Make sure that any variables or objects you use in your VBA code are defined and initialized correctly. This error may occur if you are referencing a variable or object that doesn't exist or that hasn't been initialized.
- Try debugging your code and let us know whats wrong.
Kindly paste your code here for more clarity.
Also refer to this article for more information- https://community.spiceworks.com/how_to/195135-how-to-fix-run-time-error-1004-in-excel
Best Regards.