A line of code, that seems to work fine in Office 2016 and Office 365, runs into a Runtime Error 9 when using Office 2013.
Workbooks.Open Filename:="W:\06 Project Management Master\Project Resource Tool\Backend Database\Backend Database.xlsm"
Workbooks("Backend Database").Worksheets("Home").Activate
Workbooks("Backend Database").Worksheets("Home").Range("D15").Activate
Specifically, it is the line that activates Range("D15")
in a second workbook that is not the workbook that contains the VBA code. The workbook and worksheet exist, as is evident since it works on the other versions of Office, but for the life of me, I can't work out what the issue is here - other than the version of Office.
I have tried putting the statement into a With Workbooks("Backend Database").Worksheets("Home")
statement, but it runs into the Runtime Error when Range("D15").Activate
line arrives.
Does anyone have any suggestions, apart from update the computer on Office 2013 to Office 365? I tried asking IT for that and got understandably laughed out, lol. I'm hoping someone has come across this before and knows how to address it.