Can I apply for a patent for excel code?

Excel code can be patented.

According to the information in today's headlines, excel belongs to the application level and can apply for software copyright registration.

Excel source generation refers to an uncompiled text file written according to a certain programming language specification, which is a readable computer language instruction.