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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how you can count the number of cells that are highlighted
 
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
(e-mail address removed)
chipsters said:
Does anyone know how you can count the number of cells that are
highlighted
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top