Th3Hovster
New Member
- Joined
- Jul 7, 2017
- Messages
- 3
Hello,
I am having a few issues with a for each macro I am working on. I am trying to compile information from forms in multiple worksheets into one list.
The information I need is in the same cells on all the forms and I have recorded the macro I need from one of the sheets and I am trying to apply that for all sheets in the workbook. My master is called HIT List and the way it sits now, it just pulls from HIT List instead of the other tabs and I'm also not sure if my paste in next empty cell portion is correct either.
Here is a portion of what I have so far, the rest of the code repeats this with just the cells changing:
Sub HITListCompile()
'
' HITListCompile Macro
'
Thanks in advance for taking a look
I am having a few issues with a for each macro I am working on. I am trying to compile information from forms in multiple worksheets into one list.
The information I need is in the same cells on all the forms and I have recorded the macro I need from one of the sheets and I am trying to apply that for all sheets in the workbook. My master is called HIT List and the way it sits now, it just pulls from HIT List instead of the other tabs and I'm also not sure if my paste in next empty cell portion is correct either.
Here is a portion of what I have so far, the rest of the code repeats this with just the cells changing:
Sub HITListCompile()
'
' HITListCompile Macro
'
For Each ws In ThisWorbook.Worksheets
If ws.Name <> "HIT List" Then
Range("C2").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("HIT List").Select
Range("A3").End(xlUp).Offset(1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C3").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("HIT List").Select
Range("B3").End(xlUp).Offset(1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.Copy
Sheets("HIT List").Select
Range("A3").End(xlUp).Offset(1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C3").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("HIT List").Select
Range("B3").End(xlUp).Offset(1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Thanks in advance for taking a look