FileDialog 429 Error

NVSG

New member
Local time
Yesterday, 20:18
Joined
Oct 11, 2013
Messages
1
The following code is throwing a 429 error when opening the selected document (code in red). How do I correct this?


Code:
Dim f As Object
Dim FileName As String
 
Set fd = Application.FileDialog(1)
 
Dim FileChosen As Integer
FileChosen = fd.Show
 
If FileChosen <> -1 Then
 
MsgBox "No file opened"
 
Else
 
FileName = fd.SelectedItems(1)
[COLOR="Red"]Documents.Open (FileName)[/COLOR]
 
End If     
 
    
Do other stuff...
 
End Sub
 
The error is because Documents works only on a container and there is none set in your code.
What are you trying to do?
Opening the file, try:
Code:
Application.FollowHyperling(Filename)
 

Users who are viewing this thread

Back
Top Bottom