I have some code related to a button which opens a specified file in excel.
excelpath = "C:\Program Files\Microsoft Office\Office\Excel.exe"
filepath = "C:\Aarons Folder\Interconnects\Interconnects_FileReader_V2.xls"
Call Shell(excelpath & " " & filepath, vbNormalFocus)
This works okay when i have no spaces in the filepath but cannot find the file when it has spaces.
Any Ideas on how to solve this.
excelpath = "C:\Program Files\Microsoft Office\Office\Excel.exe"
filepath = "C:\Aarons Folder\Interconnects\Interconnects_FileReader_V2.xls"
Call Shell(excelpath & " " & filepath, vbNormalFocus)
This works okay when i have no spaces in the filepath but cannot find the file when it has spaces.
Any Ideas on how to solve this.