Topic
VBA File Browser
Page d'accueil ' Communauté ' Automation et VBA ' Navigateur de fichiers VBA
- Ce sujet contient 2 réponses, 2 participants et a été mis à jour pour la dernière fois par HerveM1234, le il y a 9 années et 3 mois.
-
AuteurMessages
-
15.02.2016 à 13:39 #35224HerveM1234Participant
Hi,
Why the syntax : [code]
fileToOpen = Application _
.GetOpenFilename(“Text Files (*.txt), *.txt”)
If fileToOpen <> False Then
MsgBox “Open ” & fileToOpen
End If
[/code]
returns “error 438” ?How to browse directories using FlexPro VBA ?
Thanks15.02.2016 à 13:39 #35226HerveM1234ParticipantHi,
Why the syntax : [code]
fileToOpen = Application _
.GetOpenFilename(“Text Files (*.txt), *.txt”)
If fileToOpen False Then
MsgBox “Open ” & fileToOpen
End If
[/code]
returns “error 438” ?How to browse directories using FlexPro VBA ?
Thanks16.02.2016 à 12:08 #35225Bernhard KantzParticipantGetOpenFilename() is (as the error 438 states) no part of the FlexPro object model. It is a function from the Win32 API (and also mimicked by MS Office applications).
You may use the FileDialog property to display a file chooser. An example can be found in the online help (Index: FpFileDialog (object), follow Example link). -
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.