Book a Demo

Author Topic: "Run as Administrator" - stops VBA hooking up to EA  (Read 8086 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
"Run as Administrator" - stops VBA hooking up to EA
« on: May 25, 2016, 05:27:47 pm »
We have a number of Side-Ins written in various forms of VBA.  We've just noticed that if we run EA as Administrator, the VBA code can't find the EA Application (as the VBA code initialises).

Anybody know what's going on?

TIA,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: "Run as Administrator" - stops VBA hooking up to EA
« Reply #1 on: May 25, 2016, 06:25:39 pm »
You'll have to run the VBA as administrator as well.

Technically you are running the EA process under a different (admin) user.
Your regular user running the VBA doesn't have access to the admin EA process.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: "Run as Administrator" - stops VBA hooking up to EA
« Reply #2 on: May 26, 2016, 01:16:09 pm »
You'll have to run the VBA as administrator as well.

Technically you are running the EA process under a different (admin) user.
Your regular user running the VBA doesn't have access to the admin EA process.

Geert
That's what I thought, BUT I don't seem to have any way to run Excel (in this case) as Admin - the dialog is greyed out; I can't select the checkbox.

I don't need EA to be in Admin user for this process, it's just an annoyance to exit and re-enter.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: "Run as Administrator" - stops VBA hooking up to EA
« Reply #3 on: May 26, 2016, 02:44:03 pm »
That's what I thought, BUT I don't seem to have any way to run Excel (in this case) as Admin - the dialog is greyed out; I can't select the checkbox.

Create a shortcut to cmd.exe on your desktop, run it as as admin.  Run Excel.