Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
how can I insert three rows between rows of data. right now all i have
is activecell.insert but that only inserts one row. Dim k As Integer Dim w As Integer For w = 1 To 6 For k = 0 To 100 h = ((2 * (k + 1)) - 1) Cells(h, w).Activate ActiveCell.Insert |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I can't see where your macro gets a value for h from but one methed of
inserting a full row would be. Selection.EntireRow.Insert Mike " wrote: how can I insert three rows between rows of data. right now all i have is activecell.insert but that only inserts one row. Dim k As Integer Dim w As Integer For w = 1 To 6 For k = 0 To 100 h = ((2 * (k + 1)) - 1) Cells(h, w).Activate ActiveCell.Insert |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim k As Integer
Dim w As Integer For w = 1 To 6 For k = 0 To 100 h = ((2 * (k + 1)) - 1) Cells(h, w).Activate Rows(ActiveCell.Row & ":" & (ActiveCell.Row + 2)).Insert "Mike H" wrote: I can't see where your macro gets a value for h from but one methed of inserting a full row would be. Selection.EntireRow.Insert Mike " wrote: how can I insert three rows between rows of data. right now all i have is activecell.insert but that only inserts one row. Dim k As Integer Dim w As Integer For w = 1 To 6 For k = 0 To 100 h = ((2 * (k + 1)) - 1) Cells(h, w).Activate ActiveCell.Insert |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Sub test() Dim k As Integer For k = 100 To 1 Step -1 Cells(k, 1).Resize(3, 6).Insert Next k End Sub HTH, Bernie MS Excel MVP wrote in message ups.com... how can I insert three rows between rows of data. right now all i have is activecell.insert but that only inserts one row. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
inserting rows inbetween rows of data ? | Excel Discussion (Misc queries) | |||
Copying & Inserting Rows w/o Affecting other Rows Etc. | Excel Worksheet Functions | |||
Inserting Blank rows after every row upto 2500 rows | Excel Worksheet Functions | |||
Why is inserting rows throwing off my hidden rows | Excel Programming | |||
Inserting multiple rows in excel with data in consecutive rows | Excel Programming |