It is quite strange that my previous VBA Program encounter automation error when I open it now.

Error message "Automation Error" shows at the simple code line as below,

"Public TmpWS As Worksheet"

Anybody has a clue on this problem?
Thanks a lot