V
vicenflor
Hello,
For my application I'm looking for some code to open one of the files in a
fixed directory "bewaardirectorie". The user must be able to select the file
he's looking for. Now I'm using the code, but the problem with this code is
that one is still able to select another directory :
With Dialogs(wdDialogFileOpen)
ChangeFileOpenDirectory Bewaardirectorie
If .Show Then
Openfile = WordBasic.filenameinfo$(.Name, 1)
Else
'ActiveDocument.Protect _
' Type:=wdAllowOnlyFormFields, _
' NoReset:=True
Exit Sub
End If
End With
Any suggestions are welcome.
Vicenflor
For my application I'm looking for some code to open one of the files in a
fixed directory "bewaardirectorie". The user must be able to select the file
he's looking for. Now I'm using the code, but the problem with this code is
that one is still able to select another directory :
With Dialogs(wdDialogFileOpen)
ChangeFileOpenDirectory Bewaardirectorie
If .Show Then
Openfile = WordBasic.filenameinfo$(.Name, 1)
Else
'ActiveDocument.Protect _
' Type:=wdAllowOnlyFormFields, _
' NoReset:=True
Exit Sub
End If
End With
Any suggestions are welcome.
Vicenflor