LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default Need help creating Loop

Hello,

I've set up a Macro to port completed data (meaning a line/row of data) to
another page "OMNI". The sheet is formatted so there are 46 rows of data and
this is my "catch area" (formatted page that has headings in column A as well
as row 1 & 2. It needs to be this way since some data stays here until it's
expired and all is calculated on row 47. For every line that is moved to the
"OMNI", a new line must be entered but the rest of the data pushed up so
there is not just a blank line.

I'm looking for a Loop Macro to do the same thing as I've tried to achieve
in the Macro below. Currently, I am using a Target Value and once the box in
that named row is touched, the line will automatically copy and paste to
another sheet in my workbook. This works, but is not the best way to go
since people using this spreadsheet might accidentally touch this row and
than the data is moved prematurely.

Below is both an example of my current Macro and an example of my excel table.

Thank you for your thoughts - Jenny B.

__________________________________________________ ________________________
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
If Not Intersect(Target, Range("b3")) Is Nothing Then
Sheets("omni").Range("a3:ac3").Insert Shift:=xlDown
Range("d3:ad3").Copy Destination:=Sheets("omni").Range("a3:aa3")
Range("C3:AE3").Select
Selection.Delete Shift:=xlUp
Range("C45:AE45").Select
Selection.Insert Shift:=xlDown
ActiveWindow.ScrollRow = 3
Range("d3").Select
ElseIf Not Intersect....................................<and so on and so on
through Range("b46")

__________________________________________________ ____________
A B C D
E F.....<all the way to AE
Date Company Div Group Response Rate
TAT Reports

1 1/1/2007 Paint Division IT 72%
7 8

2 2/1/2006 Electronics C&G 51%
8 23

3 3/1/2007 Automotive Trans 63%
9 25

4

""
""
47 (row 47 used to Avg certain columns) <Cell Avgs all Response Rates
<Cell Avgs Turn Around <Cell Avgs Number of Reports
 
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
Everything works...but can't get it to Loop PBnJGang Charts and Charting in Excel 3 December 28th 06 06:00 PM
On Error Resume Next (when next statement is Do Loop ...) EagleOne Excel Discussion (Misc queries) 2 September 26th 06 03:26 PM
Loop time seems dependent on unrelated workbook - Why? Richard Excel Worksheet Functions 2 March 30th 06 11:59 PM
Loop gone crazy Dave Peterson Excel Discussion (Misc queries) 4 December 16th 05 03:38 PM
Do Loop Noemi Excel Discussion (Misc queries) 0 December 8th 05 10:43 PM


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