Compiled code stopped working. KINDA SOLVED

One day it worked. Then next day it didn’t.

I didn’t make any changes to the code.
Is this possible or is it due to excel upgrade or a local setting on my pc.

Application.Worksheets(“Imported data”).Protect(964257816,False,False,False,True,False,False,False,False,False,False,False,False,False,False,False)

It appears that the code doesn’t work in normal VBA anyway. Compiles in VBA correctly. Perhaps excel bug/nuance.
I have used the shorter coding in VBA and not worry about compiling in XLSpadlock.