Share via

Excel.Quit() failing when using Excel.exe through a non admin user

Anonymous
2022-11-22T12:56:22+00:00

Hello Folks,

I have just migrated Office 2013 to Office 2021 in my machine.

I am using the Office application through the COM model, where I create new Excel.Application() and then export it to a fixed XPs format and then close the excel application using Excel.Quit().

Excel.Quit() works fine when I run my application through Admin user.

But when I use a non - admin user which is less privileged the Excel.Quit() complains by throwing a :-

System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800AC472

   at Microsoft.Office.Interop.Excel.ApplicationClass.Quit()

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-11-22T13:42:43+00:00

    Office requires full admin rights

    Was this answer helpful?

    0 comments No comments