Niraj Baraili
Member
Hi Experts,
Need your help on this...
I have range like this in column C
C1 Data
C2 45
C3 55
C4 65
C5 48
C6 49
C7 51
C8 52
C9 69
Now if c2, c3 is blank, myrange shoud be like this Range(cells(4,3), Cells(LRow, 3)).
Any input on this greatly appreciated.
Need your help on this...
I have range like this in column C
C1 Data
C2 45
C3 55
C4 65
C5 48
C6 49
C7 51
C8 52
C9 69
Code:
Sub Test
Dim LRow As Integer
LRow = Sheet1.Cells(Rows.Count, "C").End(xlUp).Row
With Sheet1
Set myrange = .Range(cells(2,3), Cells(LRow, 3))
End With
End
Any input on this greatly appreciated.
Last edited by a moderator: