LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Insert data in multiple rows

Hello all

as per the code below, its reading 4 rows and i want all the four rows
to be inserted in new row of excel. Kindly help me to achieve the
same

if (srcRng1.Value2.ToString() == "Affected Products:")
{
for (int j = i; j <= i + 1; j++)
{
//Excel.Range range = (Excel.Range)
excel.Cells.get_Item(i, j);
//range.Insert
(Excel.XlInsertShiftDirection.xlShiftDown, System.Type.Missing);



TempAP = _shtSrc.get_Range("B" + j.ToString
(), Type.Missing);
destRng1.Insert
(Excel.XlInsertShiftDirection.xlShiftDown, Type.Missing);
destRng1.Value2 = TempAP.Value2;


}
}


Thanks
Shantanu
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert multiple rows sdg8481 Excel Discussion (Misc queries) 4 April 15th 08 07:38 AM
Insert Multiple rows with data [email protected] Excel Programming 4 January 9th 08 10:28 PM
how do insert multiple rows in between multiple lines Ernie Excel Discussion (Misc queries) 1 January 15th 07 10:55 PM
Insert Multiple Rows ucf1020 Excel Discussion (Misc queries) 3 November 1st 05 01:49 PM
how do I insert multiple rows in excel after every row of data grantm5 Excel Discussion (Misc queries) 1 December 14th 04 08:09 PM


All times are GMT +1. The time now is 02:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"