FlexPro
HistoryBase
Ingénierie
Formation
Téléchargements
Support FlexPro
Connaissance
Communauté
À propos de nous
Références
Emplois
Contact général
Liste des revendeurs
Support FlexPro
FR
DE
EN
Porte-plaquette
Produits et solutions
Support et téléchargements
Entreprise
Magazine
Contact
Langue
MyWeisang

Paramètres du compte.

Topic

VBA File Browser

Page d'accueil ' Communauté ' Automation et VBA ' Navigateur de fichiers VBA

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #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).

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.