FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder
Products and Solutions
Support and Downloads
Company
Magazine
Contact Us
Language
MyWeisang

Account settings

Topic

VBA File Browser

Home page Community Automation and VBA VBA File Browser

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35224
    HerveM1234
    Participant

    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 ?
    Thanks

    #35226
    HerveM1234
    Participant

    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 ?
    Thanks

    #35225
    Bernhard Kantz
    Participant

    GetOpenFilename() 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).

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.