+ 6

How to GetActiveObject Excel not Error.

https://code.sololearn.com/cnUQjt4j2yCH/?ref=app Mycode only run successful when MS Excel running with Administrator. I want to run it when running Excel with normal mode. Help me. Thanks in advance.

26th Apr 2020, 1:10 PM
Nguyễn Văn SÆĄn
Nguyễn Văn SÆĄn - avatar
4 Answers
+ 3
Yes, I log in Windows OS under Administrator account.
30th Apr 2020, 8:32 AM
Nguyễn Văn SÆĄn
Nguyễn Văn SÆĄn - avatar
+ 2
I'm guessing that "Office" is not something you can access from the "Microsoft" here. Might be system limitations.
26th Apr 2020, 1:29 PM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
+ 2
I running Win10, VS 2019 and Office 2016
26th Apr 2020, 1:32 PM
Nguyễn Văn SÆĄn
Nguyễn Văn SÆĄn - avatar
+ 1
Isn't your VS and so your application running under the Administrator account? I would guess you can get only your own Excel with GetActiveObject.
29th Apr 2020, 1:33 PM
Gyorgy Theisz
Gyorgy Theisz - avatar