I was looking for a way to check if an Excel File was opened and the solutions I found were more or less this function
Yet this method gives me an error
That's "'get_Item' is not a member of 'Microsoft.Office.Interop.Excel.Workbooks'."
What am I missing? I've seen this method a couple times in different solutions
(I'm using Excel 2013)
As Hans Passant stated, instead of using
Excel.Application.get_Item
You should use
app.WorkBooks(name)