Penjelasannya ooom Sori Make bahasa Inggris maklum dapet dari cd MSDN he he he.... UserName Property Returns or sets the user's name, which is used on envelopes and for the Author document property. Read/write String. expression.UserName expression Required. An expression that returns an Application object. Example This example sets the user's name.
This example returns the name found in the Name box on the User Information tab in the Options dialog box (Tools menu).
WshNetwork Object Provides access to the shared resources on the network to which your computer is connected. You create a WshNetwork object when you want to connect to network shares and network printers, disconnect from network shares and network printers, map or remove network shares, or access information about a user on the network. Example The following example demonstrates displaying the domain name, computer name, and user name for the current computer system using the WshNetwork object. <package> <job id="vbs"> <script language="VBScript"> Set WshNetwork = WScript.CreateObjec WScript.Echo "Domain = " & WshNetwork.UserDoma WScript.Echo "Computer Name = " & WshNetwork.Computer WScript.Echo "User Name = " & WshNetwork.UserName </script> </job>
Interaction..::.Environ Method (Int32) Returns the string associated with an operating-system environment variable. Namespace: Microsoft.VisualBas Parameters Expression Type: System..::.Int32 Return Value Type: System..::.String Kodingannya oom : Filenya Terlampir di Attachment oom - Di dalam Modul Sub Elog(Evnt As String) Application. Dim cRecord As Long cSheet = ActiveSheet. If CekSheet("Log" Sheets.Add.Name = "Log" Sheets("Log" ActiveSheet. End If Sheets("Log" Sheets("Log" ActiveSheet. cRecord = Range("A1") If cRecord <= 2 Then cRecord = 3 Range("A2"). Range("B2"). Range("C2"). Range("D2"). Range("E2"). End If If Len(Evnt) < 25 Then Evnt = Application. ' Ok ini dia mencatat: ' Range A : Evnt (Lihat This Woork Book), Method yang dicatet : ' 1. Private Sub Workbook_BeforePrin ' 2. Private Sub Workbook_BeforeSave = "Simpan File" ' 3. Private Sub Workbook_Open = "Membuka File" ' Range B Nama Pengguna ' Range C Nama Domain (jaringan komputer) ' Nama Komputer (Identifikasi nama komputer dlm jar-kom Range("A" & cRecord).Value = Evnt Range("B" & cRecord).Value = Environ("UserName" Range("C" & cRecord).Value = Environ("USERDOMAIN Range("D" & cRecord).Value = Environ("COMPUTERNA Range("E" & cRecord).Value = Now() cRecord = cRecord + 1 If cRecord > 20002 Then Range("A3:A5002" dRows = Selection.Rows. Selection.EntireRow cRecord = cRecord - dRows End If Range("A1") = cRecord Columns.AutoFit Sheets(cSheet) Sheets("Log" Application. End Sub Function CekSheet(SheetName As String) As Boolean On Error GoTo SheetGakAda If Len(Sheets(SheetNam CekSheet = True Exit Function End If SheetGakAda: CekSheet = False End Function Sub Lihat_Log() Sheets("Log" Sheets("Log" End Sub Sub Umpetin_Log( Sheets("Log" End Sub - DI This Woorkbook ' Buat nyatet kegiatan user Private Sub Workbook_BeforePrin Dim Evnt As String Evnt = "Hapus" Call Elog(Evnt) End Sub Private Sub Workbook_BeforeSave Dim Evnt As String Evnt = "Simpan File" Call Elog(Evnt) End Sub Private Sub Workbook_Open( Dim Evnt As String Evnt = "Membuka File" Call Elog(Evnt) End Sub ************ Saya gak tahu apa ini berhasil menyimpan Log Pengguna di dalam JARINGAN KOMPUTER LOKAL...he he maklum komputer ane dirumah cuman 1 Doank oom jadi gak bisa di Tes....... ~ ^ Puthut Wibowo ^ ~ --- On Fri, 9/25/09, kid <nmkid.family@
|
| Tolong cariin momods kerjaan jadi direktur dongggg... :D :D :D |
| 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