Hi DAA
Try:
Don't forget the code tags around the code.
Remarks:
A -
In your code
you have a syntax error. In the instruction Range(Range(),Range()) you are not allowed to mix ranges from different worksheets. In your code the part in blue refers to the worksheet DSheet while the inside, the part in red refers to the active sheet. This is a syntax error.
B -
In the line
you should correct 2 things
1 - there are more than 32K rows even before excel 2007, so instead of defining the variables as Integer it's better to define theam as Long
2 - in vba you must declare the type for each variable. In your line you are declaring RCol as Integer and you are not specifying the type for the other variables and so vba defines them as Variant. It should be
HTH
Bookmarks