DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub SAY()
MsgBox Selection.SpecialCells(xlCellTypeConstants, 23).Count 'Formül hariç dolu hücreleri sayar.
MsgBox Selection.SpecialCells(xlCellTypeFormulas, 23).Count 'Formüllü hücreleri sayar.
End Sub
Sub SAY()
Dim Hücre As Range, Say As Long
For Each Hücre In Selection
If Hücre.Value <> "" Then
Say = Say + 1
End If
Next
MsgBox Say
End Sub
Sub DoluHucreSayisi()
Cells.Select
On Error Resume Next
dolu = Selection.SpecialCells(xlCellTypeConstants, 23).Count + Selection.SpecialCells(xlCellTypeFormulas, 23).Count
MsgBox dolu
End Sub
Sub say()
MsgBox Selection.Cells.Count
End Sub
Sub SAY()
MsgBox WorksheetFunction.CountA(Selection)
End Sub
MsgBox Intersect(ActiveSheet.UsedRange, Selection).Count
yazmıştım zaten.Hücre içeriklerini denetlemek için ayrıca kod takviyesi yazabilirsiniz.
Option Explicit
Sub SAY()
Dim Say1 As Long, Say2 As Long, Say3 As Long
Say1 = ActiveSheet.DrawingObjects.Count 'Objeler
Say2 = WorksheetFunction.CountA(Cells) 'Dolu Hücreler
Say3 = Cells.SpecialCells(xlCellTypeVisible).Count 'Görünür Hücreler
MsgBox Say1 + Say2 + Say3
End Sub
hocam alakanıza teşekkür ederim, direk görünmez hücreleri tespit etmek mümkün değil mi?Selamlar,
Aşağıdaki kod belki size fikir verebilir.
Kod:Option Explicit Sub SAY() Dim Say1 As Long, Say2 As Long, Say3 As Long Say1 = ActiveSheet.DrawingObjects.Count 'Objeler Say2 = WorksheetFunction.CountA(Cells) 'Dolu Hücreler Say3 = Cells.SpecialCells(xlCellTypeVisible).Count 'Görünür Hücreler MsgBox Say1 + Say2 + Say3 End Sub
Option Explicit
Sub GİZLİ_SATIR_SAYISI()
Dim SAY As Long, SATIR As Long
SATIR = IIf(Val(Application.Version) <= 11, 65536, 1048576)
SAY = SATIR - [A:A].SpecialCells(xlCellTypeVisible).Count
MsgBox SAY
End Sub