What does !escape do in the following line of VBA code? There isn’t a escape() anywhere and I searched on google for a in build escape function but seem that doesn’t exist.
Application.OnKey "%{F11}", "1006.xls!escape"
[EDITED / ANSWER]
Later I found it was Laroux Virus that corrupt excel files. The infected excel file will try to call a non-existing macro named “escape” from 1006.xls intentionally to annoy the user with a harmless pop-up exception every time the infected excel file is open.
What this code does is call the macro “escape” in workbook 1006.xls
When you Press Alt F11, the code will run the macro “Escape”. This method is usually used when you want to call a macro from another workbook.
HTH
Sid