pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
I want the selection to show cross way.
I have two lines here: i want them to be selected in one go and not one by one.
Current code:
Thanks for Helping!
I have two lines here: i want them to be selected in one go and not one by one.
Code:
[FONT=Courier New]Range(Cells(rw, "A"), Cells(rw, "G")).Select
Range(Cells(1, cl), Cells(10, cl)).Select[/FONT]
Current code:
Code:
[/FONT]
[FONT=Courier New]Option Explicit
Sub hilightRowsAndColumns()
Dim cl, rw
cl = Selection.Column
rw = Selection.Row
Range(Cells(rw, "A"), Cells(rw, "G")).Select
Range(Cells(1, cl), Cells(10, cl)).Select
End Sub
Thanks for Helping!