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

Einlesen vom Benutzername

Page d'accueil ' Communauté ' Automation et VBA ' Lecture du nom d'utilisateur

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #35085
    Markus Frank
    Participant

    Hallo,
    Ich habe ein Makro geschrieben um den benutzername einzulesen.
    Wie kann ich den eingelesenen Benutzername in einem Dokument-Objekt eintragen

    [u]Code:[/u]
    Dim MyName
    Sub MyuserName()
    MyName = Environ(“UserName”)

    End Sub

    Vielen danke im Voraus
    Gruß K

    #35087
    Markus Frank
    Participant

    Hallo,
    Ich habe ein Makro geschrieben um den benutzername einzulesen.
    Wie kann ich den eingelesenen Benutzername in einem Dokument-Objekt eintragen

    [u]Code:[/u]
    Dim MyName
    Sub MyuserName()
    MyName = Environ(“UserName”)

    End Sub

    Vielen danke im Voraus
    Gruß K

    #35086
    Bernhard Kantz
    Participant

    You could add a drawing object “Label” into the document with the text [b]%{ThisFPObject.Comments}[/b] to show the document comment.

    With VBA you could add a document comment. In this example there is a document object with the name [b]document[/b] in the rootfolder of the current project database.

    [code]
    Dim myName
    myName = Environ(“UserName”)
    With ThisDatabase.RootFolder.Object(“Document”, fpObjectTypeDocument)
    .Comments = myName
    End With
    [/code]

    support@weisang.com

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