OleMiss2010
Member
That needs to do the following things:
1. Go to a Sheet
2. Select a cell from a set of cells
3. Copy the contents of that cell
4. Go to another Sheet
5. Find the first instance of the copied item on the current sheet
6. Offset 12 rows below where that item is
7. Copy that row
8. Go back to the original Sheet
9. Paste the row below the cell that was originally copied
Here is the code I have so far that is supposed to cover through step 8
[pre]
[/pre]
However, I cannot figure out a good way to perform my find function correctly, which is why I currently have ?s in that spot.
Any ideas?
1. Go to a Sheet
2. Select a cell from a set of cells
3. Copy the contents of that cell
4. Go to another Sheet
5. Find the first instance of the copied item on the current sheet
6. Offset 12 rows below where that item is
7. Copy that row
8. Go back to the original Sheet
9. Paste the row below the cell that was originally copied
Here is the code I have so far that is supposed to cover through step 8
[pre]
Code:
Sub CopyPaste()
i = 1
For Each Cell In Range("A2:A3")
Sheets("Sheet1").Select
i = i + 1
Range("A" & i).Select
Selection.Copy
Sheets("PEER DATA").Select
Cells.Find(What:=????????????, After:=Range("A1"), LookIn:=xlFormulas, LookAt _
:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Select
Application.CutCopyMode = False
ActiveCell.Offset(12, 0).Select
Rows("1:1").EntireRow.Select
Selection.Copy
Sheets("Sheet1").Select
Next Cell
End Sub
However, I cannot figure out a good way to perform my find function correctly, which is why I currently have ?s in that spot.
Any ideas?