The following code in Python is not opening excel visibly on my device, and excel launches as a background process instead of an app.
import win32com.client
excel = win32com.client.Dispatch("Excel.Application")
excel.visible = True
excel.DisplayAlerts = True
workbook = excel.Workbooks.Add()
I expect excel to open visibly, for me to be able to watch all operations being performed, and for excel to function much as if it were being opened manually. When the code executed, no excel workbook has been opened on my screen. I examine task manager and notice that excel is open only as a background task. Attempting to perform certain other operations in the open workbook fail because the program is not visible. I get no error codes from the above code, but I have more code dependent on excel being launched visibly as an app. I run the same code on other devices and experience no such issue. Why might the excel app not be launching as an app?