Deuce Bucksman
Board Regular
- Joined
- Jan 17, 2011
- Messages
- 102
Hello gurus,
Hopefully this is a layup: I'm trying to write a macro that will count all cells in the selection. Just the count of cells that are selected in the range, not the values within them. I know the code below is wrong, I just wanted to provide my feeble attempt as a humble request for assistance. Thanks!
Sub macrotest()
Dim cell As Range
For Each cell In selection
cell.Count = cell
MsgBox cell
Next cell
End Sub
Hopefully this is a layup: I'm trying to write a macro that will count all cells in the selection. Just the count of cells that are selected in the range, not the values within them. I know the code below is wrong, I just wanted to provide my feeble attempt as a humble request for assistance. Thanks!
Sub macrotest()
Dim cell As Range
For Each cell In selection
cell.Count = cell
MsgBox cell
Next cell
End Sub