In the code that was given to me by someone here I take is to select cells in an Excell spreadsheet.I would guess all active cells. It selects cells alright, but only a few. It does not select all active cells. it select just a section of them.
What is wrong here?
Any help appreciated. Thanks in advance.
Respectfully,
Lou Reed
The code is:
Sub selectcells()
Dim Rng As Range
Set Rng = Range(Cells(1, 1), ActiveCell)
'Selecting only hardcoded data
Rng.SpecialCells(xlCellTypeConstants).Select
End Sub