DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Makro2()
'
' Makro2 Makro
'
'
ActiveWindow.SmallScroll Down:=-144
Range("A1:AM43").Select
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.Delete Shift:=xlToLeft
ActiveWindow.SmallScroll Down:=-9
Range("A1").Select
End Sub
Yanlış anlamadıysam boş hücreleri değil, A:AM sütun aralığındaiyi akşamlar arkadaşlar. Excel sayfasında A1 ile AM43 arasında boş olan sütunları makrı ile nasıl silebilrim. Yardımcı olursanız çok sevinirim.
Sub BOŞ_SÜTUNLARI_SİL()
For sütun = 39 To 1 Step -1
If WorksheetFunction.CountBlank(Range(Cells(1, sütun), Cells(43, sütun))) = 43 Then
Columns(sütun).Delete Shift:=xlToLeft
End If
Next
End Sub
[FONT="Trebuchet MS"]Sub BOŞ_SÜTUNLARI_SİL()
For sütun = 39 To 1 Step -1
[COLOR="Red"]If WorksheetFunction.CountBlank(Range(Cells(1, sütun), Cells(43, sütun))) = 43 Then[/COLOR]
Columns(sütun).Delete Shift:=xlToLeft
End If
Next
End Sub[/FONT]
[COLOR="Blue"][FONT="Trebuchet MS"]boş = WorksheetFunction.CountBlank(Range(Cells(1, sütun), Cells(43, sütun)))
sıfır = WorksheetFunction.CountIf(Range(Cells(1, sütun), Cells(43, sütun)), 0)
If boş + sıfır = 43 Then[/FONT][/COLOR]
Sub BOŞ_SATIRLARI_SİL()
For satır = [COLOR="blue"][B]300[/B][/COLOR] To [COLOR="blue"][B]1[/B][/COLOR] Step -1
If Cells(satır, [B][COLOR="Red"]40[/COLOR][/B]) = 0 Or Cells(satır, 40) = "" Then
Rows(satır & ":" & satır).Delete Shift:=xlUp
End If
Next
End Sub