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: 2
Default Inserting rows with same format

Question 1: How do you insert a row shifting everything
else down.

Question 2: Keep the same format as was in the row
originially. (Borders and font color)

Here is my current code in VB.NET for Excel 2k which does
not insert.

' Loop through all the parts
For i As Integer = 0 To partSet.Parts.Count - 1
' Set the range to output to
Dim WSRange As Object = WorkSheet.Cells
(PartList_Row_Index, "A").Resize(1,
modPartSelection.ROW_ITEM_LENGTH)
With WSRange
' Give the range the information
.Value = partSet.Parts(i).PartData
' Set the highlight color
.Interior.Color = color
End With
' Move to next row
PartList_Row_Index += 1
Next

 
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
INSERTING ROWS and LOSING FORMAT FLKULCHAR Excel Discussion (Misc queries) 0 March 24th 10 09:03 AM
Inserting Rows...but losing "FORMAT" FLKULCHAR Excel Discussion (Misc queries) 1 March 23rd 10 03:14 AM
Date format changes when inserting rows falcios Excel Discussion (Misc queries) 1 March 12th 09 03:02 PM
Copying & Inserting Rows w/o Affecting other Rows Etc. LRay67 Excel Worksheet Functions 1 October 22nd 08 02:10 AM
Inserting Blank rows after every row upto 2500 rows Manju Excel Worksheet Functions 8 August 22nd 06 12:54 PM


All times are GMT +1. The time now is 06:33 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"