maaf ada salah tulis dikittt...
seharusnya seperti ini
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
' sitiVi //28Nov2009
Dim dRng As Range
Dim XRng As Range
Dim CurRec As Range
Dim n As Integer
Set dRng = Sheets("Sheet1").Range("B4:H8")
Set XRng = Intersect(dRng, Target)
' sitiVi //28Nov2009
Dim dRng As Range
Dim XRng As Range
Dim CurRec As Range
Dim n As Integer
Set dRng = Sheets("Sheet1"
Set XRng = Intersect(dRng, Target)
If Not XRng Is Nothing Then
For n = 1 To 5
For n = 1 To 5
Set CurRec = dRng(n, 1).Resize(1, 7)
If WorksheetFunction.CountA(CurRec) = 7 Then
Sheets("Sheet1").Unprotect "XL-mania"
CurRec.Locked = True
Sheets("Sheet1").Protect "XL-mania"
End If
Next n
End If
End Sub
If WorksheetFunction.
Sheets("Sheet1"
CurRec.Locked = True
Sheets("Sheet1"
End If
End If
End Sub
----- Original Message -----From: siti ViSent: Saturday, November 28, 2009 4:17 PMSubject: Re: ]] XL-mania [[ Kunci Row Scr Otomatis'------------ Set dRng = Sheets("Sheet1").Range(" B4:H8")
Set XRng = Intersect(dRng, Target)If Not dRng Is Nothing Then '<<-------<
For n = 1 To 5Set CurRec = dRng(n, 1).Resize(1, 7)'------------
__._,_.___
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| Momods lagi hanimuuunnn... |
| 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 |
+-------------------------------------------------------------------+
| Momods lagi hanimuuunnn... |
| 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 |
+-------------------------------------------------------------------+
MARKETPLACE
.
__,_._,___
Nenhum comentário:
Postar um comentário