Hey Guys,
I am in trouble with the shell ocmmand,i have a text box "ExcelPath Location" in which there is a path of excel file i am using below code to open the excel file but it gives an error:
the value of text box is
O:\QA Files\QC Reporting\Pending Review\B329129)419479_BoxPort_RAMANDEEP BRAR_(10192013.xlsm
it gives run time error : 53
file not found
REally need immediate help,
Thanks in advance
I am in trouble with the shell ocmmand,i have a text box "ExcelPath Location" in which there is a path of excel file i am using below code to open the excel file but it gives an error:
Code:
Private Sub Command11_Click()
Dim str As String
str = ExcelPathLocation.Value
strPath = Dir(str)
Shell "excel.exe" & """" & strPath & """", vbNormalFocus
End Sub
O:\QA Files\QC Reporting\Pending Review\B329129)419479_BoxPort_RAMANDEEP BRAR_(10192013.xlsm
it gives run time error : 53
file not found
REally need immediate help,
Thanks in advance