Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Inserting Multiple Rows into Spreadsheet
I have several spreadsheets of 14,000-15,000 lines each that need rows added
at intervals determined by an ID code in column A. The number of rows of data varies from 7 to 24. The macros I've seen posted deal with a more fixed interval. Can this be modified to essentially add rows at random, or is there another possibility? Thanks for any Info |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Inserting Multiple Rows into Spreadsheet
Rows can be added with a macro by looking at data on the worksheet to
determine where rows ae added. Sub AddRows() IDNum = 123 LastRow = Range("A" & Rows.Count).end(xlup).Row for RowCount = LastRow to 1 step -1 if Range("A" & RowCount) = IDNum then Rows(RowCount + 1).Insert end if next RowCount End Sub "Auburn Jon" wrote: I have several spreadsheets of 14,000-15,000 lines each that need rows added at intervals determined by an ID code in column A. The number of rows of data varies from 7 to 24. The macros I've seen posted deal with a more fixed interval. Can this be modified to essentially add rows at random, or is there another possibility? Thanks for any Info |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Inserting Multiple rows | Excel Discussion (Misc queries) | |||
inserting rows on multiple worksheets | Excel Worksheet Functions | |||
Inserting multiple rows every other row | Excel Discussion (Misc queries) | |||
Inserting Multiple Rows | Excel Discussion (Misc queries) | |||
Inserting multiple rows | Excel Discussion (Misc queries) |