atau seperti ini kah ?
kita tulis di sheet
misal di cell c3 "Nama Komputer Ini:"
di cell d3 ditulis fungsi / UDF
=NamaKomputer()
harusnya di d3 muncul nama komputer dimana excel dijalankan
'--coding udf ---------------
Private Declare Function GetComputerName _
Lib "kernel32" Alias "GetComputerNameA" _
(ByVal lpBuffer As String, nSize As Long) As Long
Function NamaKomputer() As String
Dim S As String * 255, sLen As Long, T As String
T = ""
On Error Resume Next
sLen = GetComputerName(S, 255)
sLen = InStr(1, S, Chr(0))
If sLen > 0 Then T = Left(S, sLen - 1) Else T = S
On Error GoTo 0
NamaKomputer = UCase(Trim(T))
End Function
2010/9/23 STDEV(i) <setiyowati.devi@gmail.com>
mungkin seperti ini kah ??
Sub DiaboxSysProperty_CompName()
' siti Vi / bluewater 21 sept 2010
Call Shell("rundll32.exe shell32.dll," & _
"Control_RunDLL sysdm.cpl,0,1", vbNormalFocus)
End Sub2010/9/21 Ardo, Ronald <ronald.ardo@siemens.com>
> Dear Pakar xls and members,
> Mohon share formula atao macro untuk detect computer name tertentu ...
> Jurus ini untuk digunakan pada file yang diperbolehkan hanya untuk comuter tertentu.
> Terimakasih atas pencerahanya.
>
> Salam
> Ardo
__._,_.___
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| oppsss... thr-nya kok cepet banget ya habisnya.... T_____T |
| 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 |
+-------------------------------------------------------------------+
| oppsss... thr-nya kok cepet banget ya habisnya.... T_____T |
| 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 |
+-------------------------------------------------------------------+
.
__,_._,___
Nenhum comentário:
Postar um comentário