Coldfire46
New Member
- Joined
- Aug 6, 2015
- Messages
- 17
Hi all,
In need of some help as I'm a bit of a vba novice:
I have a worksheets (entitled Summary 1, Summary 2, Summary 3 etc), I want to loop through the cells within each of the summary sheets and every time I come across a number, I want to copy that number into a new worksheet (entitled Compile Input Data).
I want to loop through data in cells G15:V15 in each summary sheet and then jump down a row (e.g. look through G16:V16 etc) until I get to the bottom of the data (which is indicated by a cell in column G containing the words "End"). When a number is found, I want to copy that value in column Q in the "Compile Input Data" worksheet, and generate a task ID for each row that is populated in this second worksheet.
Any advice would be really helpful; a starting off point would be great so that I can try to piece it together myself, see below for the code I've been trying (I know this is TOTALLY incorrect but it might give you an insight into what I'm trying to do)...
Thanks
In need of some help as I'm a bit of a vba novice:
I have a worksheets (entitled Summary 1, Summary 2, Summary 3 etc), I want to loop through the cells within each of the summary sheets and every time I come across a number, I want to copy that number into a new worksheet (entitled Compile Input Data).
I want to loop through data in cells G15:V15 in each summary sheet and then jump down a row (e.g. look through G16:V16 etc) until I get to the bottom of the data (which is indicated by a cell in column G containing the words "End"). When a number is found, I want to copy that value in column Q in the "Compile Input Data" worksheet, and generate a task ID for each row that is populated in this second worksheet.
Any advice would be really helpful; a starting off point would be great so that I can try to piece it together myself, see below for the code I've been trying (I know this is TOTALLY incorrect but it might give you an insight into what I'm trying to do)...
Thanks
Code:
If ws.Name Like "Summary-*" Then
For Each ws In Worksheets
Range("G15").Select
For x = 7 To x = 22
If Cells(15, x) <> "" Then
Selection.Copy
Sheets("Compile Input Data").Select
Range("Q15").Select
ActiveSheet.Paste
End If
Next x
Next ws