Code: Select all
set "source=\\server\excelfile.xlsm"
set "target=C:\excelfilefolder\"
xcopy "%source%" "%target%" /y /d /h /k /r
START "C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.exe" "%target%\excelfile.xlsm"
EXIT
The problem is I want it to open a new instance of excel when it starts up. If I have any excel file already open, it attaches itself to that instance.
This will be running on Windows 7/Excel 2010. I googled and tried adding %1, /e, all kinds of things and none worked, any ideas?