Excel file with VBA code - ERROR

Copper Contributor

Hello everyone,

 

I´ve got a problem with my excel file. There are 2 VBA codes included. Whenever I start the file by double klicking the file on the desktop, the following error occurs.

 

CHofm_0-1618405461849.png

It says, that they repaired and removed the VBA code.

 

In fact, my macros don´t work anymore and I have no further acces to VBA.

Whenever I start a blank Excel file and then open the needed file, everything works just fine.

Anyone who have an idea about this problem?

 

Thanks in advance guys.

 

3 Replies
Are you able to share the file in question? Please remove sensitive information first.

@Jan Karel Pieterse : thanks for your reply.

 

I´ve uploaded a Test-file with an empty macro. It doesn´t matter wheter there is a macro-code. Even if VBA is empty at all - there is always the same error. I think there might be some problems with excel or windows since I can open the excel file in the way I´ve already mentioned: Open an empty Excel file and then search for the needed file. That´s the weird stuff.