Skip navigation

Account settings

Topic

Einlesen vom Benutzername

Home page Community Automation and VBA Reading in the user name

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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

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