Does anyone know how you can count the number of cells that are highlighted
C chipsters Nov 1, 2004 #1 Does anyone know how you can count the number of cells that are highlighted
C Chip Pearson Nov 1, 2004 #2 Try something like the following: Dim CellCount As Long CellCount = Selection.Cells.Count -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com message news:[email protected]...
Try something like the following: Dim CellCount As Long CellCount = Selection.Cells.Count -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com message news:[email protected]...
D Don Guillett Nov 1, 2004 #3 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 Click to expand... 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 [email protected] chipsters said: Does anyone know how you can count the number of cells that are Click to expand... highlighted
M mroby Nov 1, 2004 #4 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.
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.
G Gord Dibben Nov 1, 2004 #5 By "highlighted" do you mean those with a background color? If not, see the other posts. If so, see Chip Pearson's working with colors page. http://www.cpearson.com/excel/colors.htm Gord Dibben Excel MVP
By "highlighted" do you mean those with a background color? If not, see the other posts. If so, see Chip Pearson's working with colors page. http://www.cpearson.com/excel/colors.htm Gord Dibben Excel MVP