Topic
Einlesen vom Benutzername
Page d'accueil ' Communauté ' Automation et VBA ' Lecture du nom d'utilisateur
- Ce sujet contient 2 réponses, 2 participants et a été mis à jour pour la dernière fois par Markus Frank, le il y a 13 années et 11 mois.
-
AuteurMessages
-
06.06.2011 à 11:29 #35085Markus FrankParticipant
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ß K06.06.2011 à 11:29 #35087Markus FrankParticipantHallo,
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ß K06.06.2011 à 12:47 #35086Bernhard KantzParticipantYou 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] -
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.