honeycake5505
New Member
- Joined
- Jul 29, 2021
- Messages
- 3
- Office Version
- 2016
- Platform
- MacOS
Hi, I am trying to record a macro of me copying and pasting. My code is below:
I am selecting one cell when I paste, but it is still giving me an error when I run the code. Any help is appreciated!
Range("A46:W46").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Spend Not Captured").Select
Range("H166").Select
Range(Selection, Selection.End(xlDown)).Select
ActiveWindow.SmallScroll Down:=6
Range("A3661").Select
ActiveSheet.Paste
I am selecting one cell when I paste, but it is still giving me an error when I run the code. Any help is appreciated!
Range("A46:W46").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Spend Not Captured").Select
Range("H166").Select
Range(Selection, Selection.End(xlDown)).Select
ActiveWindow.SmallScroll Down:=6
Range("A3661").Select
ActiveSheet.Paste