#1   Report Post  
Posted to microsoft.public.excel.programming
NuB NuB is offline
external usenet poster
 
Posts: 9
Default add new row

I'm able to add a new row from code (C#) but how can i add text to the new
row that was just added?
this is what i have:

currentCell = (Excel.Range)cellCars.Cells.get_Item(location+=1,1 );
Excel.Range dRow = currentCell.EntireRow;
dRow.Insert(Excel.XlInsertShiftDirection.xlShiftDo wn, missing);
dRow.Value2 = "Total Sales";

its not entering Total Sales to the new added row in Cell A#?

what do i need to add to add Total Sales to the correct A cell?






Reply
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



All times are GMT +1. The time now is 03:49 AM.

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

About Us

"It's about Microsoft Excel"