This is my first question on here, so please be kind.
Disclaimer: I'm also very new to macro building in Excel, so don't be upset if I ask for clarification.
I set out to make a project tracker and ran into the following problem: I would like to have a button that would allow me to copy an active selection (a single cell or a row) on one worksheet and paste it into another worksheet within one workbook.
What I'm essentially trying to do is to have a possibility to just select a certain task, click the button and copy/paste it into a different worksheet. Therefore, as far as I understand, the code needs to be a loop (?) and it also needs to offset so that I can paste multiple tasks and they don't overwrite each other.
The code I managed to scrounge up right now gives me the runtime error 1004 on the line Activecell.Offset
, and I can't figure out why.
Sub MoveToWeekly()
Sheets("Test1").Select
Selection.Copy
Sheets("Test2").Select
Sheets("Test2").Range("A1:A4").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1).Select
Selection.PasteSpecial _
Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
End Sub
I'd be incredibly glad for some help and I'm sorry that I'm not being awfully specific.