lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I copied the code below from a website and it works fine and I got an idea what it does. But I tried to understand what "ActiveCell" returns. So I did the following in the immediate window
?ActiveCell
and I got the "Hi" which is the content of the cell A1 that is selected? if that is the case, why the code below works? I thought ActiveCell should return A1
Thank you
I copied the code below from a website and it works fine and I got an idea what it does. But I tried to understand what "ActiveCell" returns. So I did the following in the immediate window
?ActiveCell
and I got the "Hi" which is the content of the cell A1 that is selected? if that is the case, why the code below works? I thought ActiveCell should return A1
Thank you
Code:
Sub selecttoend()
Range(ActiveCell, ActiveCell.End(xlDown)).Select
End Sub
Last edited: