Hi,
I want to copy contents of one row in excel to other row.
Currently I am using following code for copying data from previous row.
rngCurrent.Offset(-1).Copy
rngCurrent.PasteSpecial (xlPasteValues)
But I want to skip some columns. So lets say if there are 20 columns, I want to copy all columns except column 4 and 14. How to acheive this in vba ? Any suggestions ?
Example:
Assume following is the data in row.
Row to be copied........> 1 2 3 4 5 6 7 8 .... 14 15 16
Target Row Before Copy..> A B C D E F G H .... N O P
Target Row After Copy...> 1 2 3 D 5 6 7 8 .... N 15 16
So everything is copied except column 4 and 14. Note that oringal values D and N in column 4 and 14 of Target row are preserved.
Thanks in Advance,
Sam