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 10 years, 4 months ago ago by Her…234.
-
AuthorBeiträge
-
15.02.2016 at 13:39 #35224Her…234Participant
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 #35226Her…234ParticipantHi,
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 #35225Ber…ntzKeymasterGetOpenFilename() 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). -
AuthorBeiträge
- You must be logged in to reply to this topic.