Excel file with VBA code - ERROR

%3CLINGO-SUB%20id%3D%22lingo-sub-2272351%22%20slang%3D%22de-DE%22%3EExcel%20file%20with%20VBA%20code%20-%20ERROR%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2272351%22%20slang%3D%22de-DE%22%3E%3CP%3EHello%20everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%26amp%3Bapos%3Bve%20got%20a%20problem%20with%20my%20excel%20file.%20There%20are%202%20VBA%20codes%20included.%20Whenever%20I%20start%20the%20file%20by%20double%20klicking%20the%20file%20on%20the%20desktop%2C%20the%20following%20error%20occurs.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22CHofm_0-1618405461849.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F272795i9856BA5F0EDF21A7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22CHofm_0-1618405461849.png%22%20alt%3D%22CHofm_0-1618405461849.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIt%20says%20that%20they%20repaired%20and%20removed%20the%20VBA%20code.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20fact%2C%20my%20macros%20don%26amp%3Bapos%3Bt%20work%20anymore%20and%20I%20have%20no%20further%20acces%20to%20VBA.%3C%2FP%3E%3CP%3EWhenever%20I%20start%20a%20blank%20Excel%20file%20and%20then%20open%20the%20needed%20file%2C%20everything%20works%20just%20fine.%3C%2FP%3E%3CP%3EAnyone%20who%20has%20an%20idea%20about%20this%20problem%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20guys.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2272351%22%20slang%3D%22de-DE%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New 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.