Topic
Einlesen vom Benutzername
Home page › Community › Automation and VBA › Reading in the user name
- This topic has 2 replies and 2 voices and was last updated 13 years, 11 months ago ago by Markus Frank.
-
AuthorPosts
-
06.06.2011 at 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 at 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 at 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] -
AuthorPosts
- You must be logged in to reply to this topic.