Topic
VBA File Browser
Home page › Community › Automation and VBA › VBA File Browser
- This topic has 2 replies and 2 voices and was last updated 9 years, 3 months ago ago by HerveM1234.
-
AuthorPosts
-
15.02.2016 at 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 at 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 at 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). -
AuthorPosts
- You must be logged in to reply to this topic.