cut and paste range of data in excel

S

shantanu

hello

i am unable to cut paste a series of data after row 6 . i am sharing
the code please help me .

if (srcRng1.Value2.ToString() == "SRPMS:")
{
destRng2 = _shtDest.get_Range("B" + (i
+5).ToString(), Type.Missing);
TempSrc = _shtSrc.get_Range("A" + (i+1).ToString
(), Type.Missing);
destRng2.Value2 = TempSrc.Value2;

//for (int k = 6; k <= TempSrc.Rows.Count; k++)
//{
// Temp = _shtDest.get_Range("B" + k.ToString
(), Type.Missing);

// Temp.Value2 = TempSrc.Value2;

// }
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top