Excel Macro with GetObject("SAPGUI") work fine when open excel manully. But if we open excel application through C# code and then try to run macro it shows error "Invalid Syntax". Any idea why it's happen. What is a root cause to fail macro when excel open through C# code? How to fix it?
↧