mrinal saha
Board Regular
- Joined
- Jan 20, 2009
- Messages
- 229
Hi Folks,
In the below code, I'm trying to get the rownumber of the cell containg "CONTROL NO". And than want to select the entire range from that cell to lr and lc. But selection is a problem statement for me now. need a line for that.
lr = ActiveSheet.UsedRange.Rows.Count
lc = ActiveSheet.UsedRange.Columns.Count
For i = 1 To 7
If Cells(i, 1).Value = "CONTROL NO" Then
rownum = Cells(i, 1).Row
End If
Next i
Cells(rownum, lc).Select
Thanks,
Mrinal
In the below code, I'm trying to get the rownumber of the cell containg "CONTROL NO". And than want to select the entire range from that cell to lr and lc. But selection is a problem statement for me now. need a line for that.
lr = ActiveSheet.UsedRange.Rows.Count
lc = ActiveSheet.UsedRange.Columns.Count
For i = 1 To 7
If Cells(i, 1).Value = "CONTROL NO" Then
rownum = Cells(i, 1).Row
End If
Next i
Cells(rownum, lc).Select
Thanks,
Mrinal