![]() |
Counting cells with data in them
Try this:
Sub count_filled() Dim sectornum As Long Dim rngX As Range Dim lngX As Long Range("D1", Range("D65536").End(xlUp)).Select sectornum = Selection.Count lngX = Application.WorksheetFunction.CountBlank(Selection ) MsgBox CStr(sectornum - lngX) End Sub Regards, Wes |
All times are GMT +1. The time now is 01:32 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com