Cannot run the macro 'Main'

Cannot run the macro ‘Main’. The macro may not be available in this workbook or all macros may be disabled. I am getting this error how to overcome it.

Hi @Gopi_Krishna1

Have you enable the macros. If not follow the below steps to enable Macro settings

Once you go to the below mentioned view by clicking the file option in excel then you please follow the steps:

After going to macros please enable all those settings and then please run the code.

Regards

I have done this, but still getting this error

Can you share the screenshots if possible @Gopi_Krishna1

Regards

Getting Like this: Invoke VBA:Cannot run the macro ‘Main’. The macro may not be available in this workbook or all macros may be disabled.

Hi @Gopi_Krishna1

Have you passed the sheet name and method name correctly. If possible share the workflow.

Check out the thread too

Regards