I have an Access 2013 database that was originally Access 2010. Under Access 2010, the database would open an Excel 2010 object using VBA as follows:
Dim ExcelObject as Object
Set ExcelObject = GetObject(...filepath...)
ExcelObject.Application.Visible = True
ExcelObject.Windows(1).Visible = True
However, now under Access 2013, the error "Subscript out of range" is issued when it executes the line "ExcelObject.Windows(1).Visible = True". I checked the documention for Access 2013 / Excel 2013 and the statements are correct. However, they do not work. How do I get this to work with Access 2013 to open an Excel 2013 object? I am using Office 2013 the standalone desktop version, not Office 365.