Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Inserting Rows after Input Box is used

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Inserting Rows after Input Box is used

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
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 inbetween rows of data ? Azeem Excel Discussion (Misc queries) 1 October 27th 09 07:38 AM
Copying & Inserting Rows w/o Affecting other Rows Etc. LRay67 Excel Worksheet Functions 1 October 22nd 08 02:10 AM
Inserting and retaining an input variable ARGT Excel Discussion (Misc queries) 4 June 26th 08 11:42 PM
Input Boxes 4 Inserting A Range In A Formula FARAZ QURESHI Excel Discussion (Misc queries) 5 March 2nd 08 06:30 PM
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:34 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"