Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using this code to count the number of cells in column A that ar
NOT empty. '------------------------------------------------------------- Sub RowACount() Dim rng As Range Dim count As Long Set rng = Range(Cells(1, 1), Cells(Rows.count, 1).End(xlUp)) count = Application.WorksheetFunction.CountA(rng) MsgBox count End Sub '------------------------------------------------------------ Which works great!! What i want to then do is... Count the number of cells in column C, (but i'm not sure how to chang the code to do this), and name the Subroutine as RowCCount() Also I want to count the number of Empty cells in columm A and name th Subroutine it Sub EmptyCellCount() Many thank -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with changing code | Excel Discussion (Misc queries) | |||
changing zip code to number | Excel Discussion (Misc queries) | |||
changing format code?? please help!!! | Excel Discussion (Misc queries) | |||
code for changing font | Excel Discussion (Misc queries) | |||
Changing code with code | Excel Programming |