Tante2x..... He he bagusnya dapetin nama Windows Usernamenya jadi pas dishare juga ketahuan Fungsinya : Option Explicit 'api call for obtaining the username Private Declare Function GetUserName& Lib "advapi32.dll" Alias "GetUserNameA" _ (ByVal lpBuffer As String, _ nSize As Long) Public Function WindowsUserName() As String Dim szBuffer As String * 100 Dim lBufferLen As Long lBufferLen = 100 If CBool(GetUserName( WindowsUserName = Left$(szBuffer, lBufferLen - 1) Else WindowsUserName = CStr(Empty) End If End Function Kalo di modif dari punyanya Tante yang Misterius ( Katanya om Mono looh tante bukan saya) : Private Sub Workbook_Open( Call LogInfo( _ Format(Now, "dd-mmm-yyyy hh:mm:ss") & " " & _ "Opened by " & WindowsUserName) End Sub Selain itu ada fungsi lainnya (File Terlampir) - Nama Environtment Environ("USERNAME" - NETWORK Username : Dim objNet As Object On Error Resume Next Set objNet = CreateObject( MsgBox "Network username : " & objNet.UserName Set objNet = Nothing ~ Puthut Wibowo ~ --- On Mon, 9/21/09, siti Vi <setiyowati.devi@
|
| Selamat Idul Fitri... Mohon maap dari momods... |
| http://www.facebook.com/group.php?gid=37671048001&ref=mf |
+-------------------------------------------------------------------+
| DILARANG : MLM, money game, OOT, iklan tanpa izin, SARA, testing, |
| pembicaraan pribadi, one line message, melecehkan, tidak sopan. |
+-------------------------------------------------------------------+
| Buat subjek yang kreatif, jangan : "tanya", "help", "mohon bantu" |
| Usahakan besar attachment < 200 kb. Gunakan winzip jika perlu. |
+-------------------------------------------------------------------+
| Ajak teman-teman Anda bergabung dengan mengirim e-mail kosong ke |
| XL-mania-subscribe@yahoogroups.com atau kirimkan mereka file dari |
| http://groups.yahoo.com/group/XL-mania/files/Promotion/ |
+-------------------------------------------------------------------+
| Berikan testimoni di : http://www.friendster.com/xlmania atau... |
| http://www.xl-mania.com/2008/06/testimoni-xl-mania.html |
+-------------------------------------------------------------------+
| Message lama ada di : |
| http://groups.yahoo.com/group/XL-mania/messages [perlu yahoo id] |
| http://www.mail-archive.com/xl-mania@yahoogroups.com |
+-------------------------------------------------------------------+
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Nenhum comentário:
Postar um comentário