excelcraze
Board Regular
- Joined
- Sep 10, 2012
- Messages
- 81
Hello,
I use the following code to select all data in a column. In my example data available only in two cells (M8 and M9). When I used the following code it selects from M1 to M9.
Sometimes I may have one or many data.
Please help
I am using Win 7, Office 2013
I use the following code to select all data in a column. In my example data available only in two cells (M8 and M9). When I used the following code it selects from M1 to M9.
Sometimes I may have one or many data.
Code:
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlUp)).Select
Please help
I am using Win 7, Office 2013