hadromer
Altın Üye
- Katılım
- 23 Ekim 2015
- Mesajlar
- 402
- Excel Vers. ve Dili
- LTSC Professional Plus 2021 64 Bit Türkçe
- Altın Üyelik Bitiş Tarihi
- 26-04-2028
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Sil()
Dim aranan, j As Byte, c As Range, Adr As String, d As Range
aranan = Array("Lower", "Upper")
For j = 0 To UBound(aranan)
Set c = Rows(1).Find(aranan(j), , xlValues, xlWhole)
If Not c Is Nothing Then
Adr = c.Address
Do
If d Is Nothing Then
Set d = Columns(c.Column)
Else
Set d = Application.Union(d, Columns(c.Column))
End If
Set c = Rows(1).FindNext(c)
Loop While Not c Is Nothing And c.Address <> Adr
End If
Next j
Application.ScreenUpdating = False
If Not d Is Nothing Then d.Delete
End Sub
çok teşekkür ederimMerhaba,
Deneyiniz.
Kod:Sub Sil() Dim aranan, j As Byte, c As Range, Adr As String, d As Range aranan = Array("Lower", "Upper") For j = 0 To UBound(aranan) Set c = Rows(1).Find(aranan(j), , xlValues, xlWhole) If Not c Is Nothing Then Adr = c.Address Do If d Is Nothing Then Set d = Columns(c.Column) Else Set d = Application.Union(d, Columns(c.Column)) End If Set c = Rows(1).FindNext(c) Loop While Not c Is Nothing And c.Address <> Adr End If Next j Application.ScreenUpdating = False If Not d Is Nothing Then d.Delete End Sub