I have some VBA that opens a spreadsheet template, copies some information into the template and saves it with a new name. This works fine on a Windows 10 machine but when I run it on a Windows 7 box it falls over at the following line:
strShare = objFso.Drives(strDrive).ShareName
Trying to work out if it's Windows 7 or are there some references that I need tick in order to get this to run?