I have a code to add a file link to a txt box and another code to access this file, is all working perfectly and have a minor issue if I decide not to add the link and pres Cancel within the dialog window
the errror is
The code is:
How do I handle this error within the code?
Also is there a way to open the dialog box within a specific folder rather than documents?
Thanks
the errror is
The code is:
Code:
Private Sub CmdAddPayslip_Click()
With Application.FileDialog(msoFileDialogFilePicker)
.Show
Me!PayslipLink = .SelectedItems(1)
End With
End Sub
How do I handle this error within the code?
Also is there a way to open the dialog box within a specific folder rather than documents?
Thanks