It works! I also found the win32::ole error for my software after windows system upgrading. It seems the operation delete excel registry of Win32. With HaoRan‘s suggestion, I finally fix the glitch.