Option Explicit
Private Sub CommandButton3_Click()
Dim i As Integer, c As Range, WaveRow As Long, Ctr As Integer
For i = 0 To Me.ListBox1.ListCount - 1
If Me.ListBox1.Selected(i) = True Then
Set c = Cells.Find(Me.ListBox1.List(i), , , xlWhole)
If Not c Is Nothing Then
WaveRow = c.Row
c.EntireRow.Delete
Do While Cells(WaveRow, 3) = "Store"
Rows(WaveRow). ClearContents
Loop
End If
End If
Next i
For Each c In Range("A5", Range("A65000").End(xlUp))
If Left(c, 4) = "Wave" Then
Ctr = Ctr + 1
c = "Wave " & Ctr
End If
Next c
[A1] = Ctr
'Unload Me
End Sub
From: XL-mania@yahoogroups.com [mailto:XL-mania@yahoogroups.com] On Behalf Of Suka Sih
Sent: Sunday, December 02, 2012 10:40 AM
To: XL-mania@yahoogroups.com
Subject: ]] XL-mania [[ Menghapus isian listbox
Form yang saya buat, listbox1 = A5:A15, jika isi listbox saya hapus maka rowsource-nya ikut ter-delete keatas. Bagaimana caranya agar pada waktu menghpus isi listbox rowsource-nya tidak ter-delete tapi hanya value-nya saja ? |
Reply via web post | Reply to sender | Reply to group | Start a New Topic | Messages in this topic (2) |
| Selamat jalan SitiVi, semoga bahagia di sisi-Nya... |
| Maaf moderasi lemooOooOott... momods siboek |
+-------------------------------------------------------------------+
| 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.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