Do these steps to avoid that @Sweety_Girl
- Open a blank workbook in Excel.
- Go to File > Options > Trust Center
- Click on Trust Center Settings…
- Under Macro Settings , make sure Trust access to the VBA project object model is checked.
Do these steps to avoid that @Sweety_Girl