EDUCATED MONKEY
Board Regular
- Joined
- Jul 17, 2011
- Messages
- 218
Setup office 2007 win xp pro ie8<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
This is something I have done before but just can not remember how.<o></o>
Here is the problem in column A I have data that I wish to select in chucks and transfer those chucks to another sheet
Data in column A (section of) typical chuck size required 28 rows from the word (Enlarge)
Enlarge<o></o>
The Ultimate Havana<o></o>
Lantigua, John
ISBN: 9780451202789<o></o>
Format: Paperback<o></o>
Publisher:Signet Book<o></o>
Write a review <o></o>
Etc..
Loads of other data
Abc
123
Only need the 28 data row that follows the label (Enlarge) in each case
Down the entire column
Enlarge
28 rows >>> other sheet
Enlarge
28 rows >>> other sheet
Etc till end reached
The code I have been using does the first one then I can not get any further
So any ideas please
This is something I have done before but just can not remember how.<o></o>
Here is the problem in column A I have data that I wish to select in chucks and transfer those chucks to another sheet
Data in column A (section of) typical chuck size required 28 rows from the word (Enlarge)
Enlarge<o></o>
The Ultimate Havana<o></o>
Lantigua, John
ISBN: 9780451202789<o></o>
Format: Paperback<o></o>
Publisher:Signet Book<o></o>
Write a review <o></o>
Etc..
Loads of other data
Abc
123
Only need the 28 data row that follows the label (Enlarge) in each case
Down the entire column
Enlarge
28 rows >>> other sheet
Enlarge
28 rows >>> other sheet
Etc till end reached
The code I have been using does the first one then I can not get any further
So any ideas please
Code:
Option Explicit
Sub DistributData()
Dim Start As String
Dim test As String
Dim temp As String
Dim Last As String
Dim pointer As Long
Dim LR, N As Long
For N = 1 To 3
Worksheets("DeweyTest").Select ' where the data is stored
Start = Application.WorksheetFunction.Match(" Enlarge", Range("A:A"), 0)
Worksheets("DeweyTest").Cells(Start, 1).Value = ""
'MsgBox (Start)
Do While Start < 28 + Start
Worksheets("DeweyTest").Select
Worksheets("DeweyTest").Cells(Start, 1).Select
Selection.Copy
Worksheets("TestdeweyResults").Select
LR = Cells(Rows.Count, 1).End(xlUp).row + 1 ' looks in Col A
Cells(LR, 1).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Start = Start + 1
Loop
Next N
End Sub
Last edited: