my mistake....it should be ...Cnt is row number , like 2 or 3Code:Ws3.Range("B" & cnt & ":" & CL(Lc) & cnt & "").ClearContents
Lc is last column number , like 2 or 3 or 4 or 5 .... and so on
CL(Lc) is last column Letter like B or C or D or E ..... and so on
So
__ "B" & cnt & ":" & CL(Lc) & cnt & "" __
is like
__ “B2:D2”
or
__ “B2:F2”
or
__ “B3:G3”
.. and so on




Reply With Quote

Bookmarks