NoviceNoob
New Member
- Joined
- Sep 22, 2016
- Messages
- 2
Hi everyone - hoping someone can teach me something about Macro's today!
I have a filtered worksheet where I need to copy, paste, make the cells below it equal what I just pasted, and then drag down onto another tab. After that loop, I need to go back to the original tab, go down one filtered row and repeat. I have the initial Macro where I can continue to copy, paste, equate the cells, drag down, on the other tab, but when I hit the macro hotkey, it does the same data. How can I rework my code to have this done? I have no coding experience what so ever as well. I appreciate any help!
See Codes:
Sub WorkingConditions()
'
' WorkingConditions Macro
'
'
ActiveWindow.SmallScroll Down:=1
ActiveCell.Offset(35, 0).Range("A1:F1").Select
Selection.Copy
Sheets("Working Conditions").Select
ActiveWindow.SmallScroll Down:=1
ActiveCell.Offset(10, 0).Range("A1").Select
ActiveSheet.Paste
ActiveCell.Offset(1, 0).Range("A1").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=R[-1]C"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=R[-1]C"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=R[-1]C"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=R[-1]C"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=R[-1]C"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=R[-1]C"
ActiveCell.Offset(0, -5).Range("A1:F1").Select
Selection.AutoFill Destination:=ActiveCell.Range("A1:F11"), Type:= _
xlFillDefault
ActiveCell.Range("A1:F11").Select
End Sub
I have a filtered worksheet where I need to copy, paste, make the cells below it equal what I just pasted, and then drag down onto another tab. After that loop, I need to go back to the original tab, go down one filtered row and repeat. I have the initial Macro where I can continue to copy, paste, equate the cells, drag down, on the other tab, but when I hit the macro hotkey, it does the same data. How can I rework my code to have this done? I have no coding experience what so ever as well. I appreciate any help!
See Codes:
Sub WorkingConditions()
'
' WorkingConditions Macro
'
'
ActiveWindow.SmallScroll Down:=1
ActiveCell.Offset(35, 0).Range("A1:F1").Select
Selection.Copy
Sheets("Working Conditions").Select
ActiveWindow.SmallScroll Down:=1
ActiveCell.Offset(10, 0).Range("A1").Select
ActiveSheet.Paste
ActiveCell.Offset(1, 0).Range("A1").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=R[-1]C"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=R[-1]C"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=R[-1]C"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=R[-1]C"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=R[-1]C"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=R[-1]C"
ActiveCell.Offset(0, -5).Range("A1:F1").Select
Selection.AutoFill Destination:=ActiveCell.Range("A1:F11"), Type:= _
xlFillDefault
ActiveCell.Range("A1:F11").Select
End Sub