I try to write a piece of code with VB script to open an excel file, take a print screen and send it by email.
This is on my professional laptop and I have several plugin installed on excel. The excel file in question has a macro inside which run on each opening but does nothing fancy (mostly formatting data).
When I open the workbook normally, everything works fine. When I launch the VB script, I have a error with a missing xla file (refer to file attached)
The code is quite simple:
Dim Xl 'as Excel.Application\par
Dim wk 'as Excel.workbook\par
set Xl = createobject("Excel.application")
Xl.Visible = True
Xl.enableevents = True
set Wk = Xl.workbooks.open("XXX")
