Topic
VBA File Browser
Página de inicio ' Community ' Automation and VBA ' Navegador de archivos VBA
- Este tema contiene Respuestas 2, Voces 2, y fue actualizado por última vez el Hace 10 años por HerveM1234.
-
AutorPuestos
-
15.02.2016 en 13:39 #35224HerveM1234Participante
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 en 13:39 #35226HerveM1234ParticipanteHi,
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 en 12:08 #35225Bernhard KantzKeymasterGetOpenFilename() 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). -
AutorPuestos
- Debes estar registrado para responder a este tema.