Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
My latest issue is this: Let's say there is a list of numbers in cells A1:A100. These numbers are 1-10, in groups of 10. example: cells A1:A10 all contain 1, cells A11:A20 all contain 2, and on up to 10. I will need to insert 10 more rows according to whatever number is entered into an Input Box or the like. the user will click button to 'insert retest', then Input Box shows to ask what 'number' was retested, the user enters the number (say 5), then 10 rows are automatically inserted after the last number 5 in the range. sounded like easy navigation manipulation in my head...but i'm still new at this. Any help from the Masters is greatly appreciated. SF |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
have a look at the following. It should help. Note that every time new rows are inserted, the range to look for the number will change. Tony Sub ccc() req = InputBox("what number was retested", , 2) Range("a1:a100").Find(req).Offset(10, 0).Select Rows(ActiveCell.Row & ":" & ActiveCell.Row + 9).Select Selection.Insert Shift:=xlDown End Sub ----- foamfollower wrote: ----- Hello, My latest issue is this: Let's say there is a list of numbers in cells A1:A100. These numbers are 1-10, in groups of 10. example: cells A1:A10 all contain 1, cells A11:A20 all contain 2, and on up to 10. I will need to insert 10 more rows according to whatever number is entered into an Input Box or the like. the user will click button to 'insert retest', then Input Box shows to ask what 'number' was retested, the user enters the number (say 5), then 10 rows are automatically inserted after the last number 5 in the range. sounded like easy navigation manipulation in my head...but i'm still new at this. Any help from the Masters is greatly appreciated. SF |
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 and retaining an input variable | Excel Discussion (Misc queries) | |||
Input Boxes 4 Inserting A Range In A Formula | Excel Discussion (Misc queries) | |||
Inserting Blank rows after every row upto 2500 rows | Excel Worksheet Functions |