How can I open Excel from another Office Application without setting references?
问题 From Word and Outlook, I'm trying to open open Excel using GetObject method but I need to set the references first. I receive "Compile error: User-defined type not defined". In order to manually fix this, I need to go to Tools>References>Microsoft Excel XX.X Object Library. Is there a way to not have to do the manual step of setting the reference? I access the same files from different sessions (local session, citrix, VM ware) that have different versions of Excel. https://docs.microsoft.com