What would the formula be for counting highlighted cells in Excel.

D

Don Guillett

If by hightlighted means selected

Sub countselectedcells()
ms = 0
For Each c In Selection
ms = ms + 1
Next
MsgBox ms
End Sub

--
Don Guillett
SalesAid Software
[email protected]
chipsters said:
Does anyone know how you can count the number of cells that are
highlighted
 
M

mroby

On the lower right of the screen below the scrollbar, there are some grey
boxes. Rightclick on the second box. You can then click on 'count' it will
then display a count for whatever you highlight.
 
Top