Hi all,
I'm quite new to VBA/Macros, & I'm trying to paste certain values from one tab to another tab on the same worksheet. What I have so far:
Sub LogButton()
Worksheets("Coaching Form").Range("I8").Copy
Worksheets("Database").Range("A2").PasteSpecial xlPasteValues
Worksheets("Coaching Form").Range("C8").Copy
Worksheets("Database").Range("B2").PasteSpecial xlPasteValues
Worksheets("Coaching Form").Range("C10").Copy
Worksheets("Database").Range("C2").PasteSpecial xlPasteValues
Worksheets("Coaching Form").Range("C9").Copy
Worksheets("Database").Range("D2").PasteSpecial xlPasteValues
Worksheets("Coaching Form").Range("C11").Copy
Worksheets("Database").Range("E2").PasteSpecial xlPasteValues
Worksheets("Coaching Form").Range("I10").Copy
Worksheets("Database").Range("F2").PasteSpecial xlPasteValues
Application.CutCopyMode = False
End Sub
How can I make this so that it pastes onto the next blank row below the non-blank one?
I'm quite new to VBA/Macros, & I'm trying to paste certain values from one tab to another tab on the same worksheet. What I have so far:
Sub LogButton()
Worksheets("Coaching Form").Range("I8").Copy
Worksheets("Database").Range("A2").PasteSpecial xlPasteValues
Worksheets("Coaching Form").Range("C8").Copy
Worksheets("Database").Range("B2").PasteSpecial xlPasteValues
Worksheets("Coaching Form").Range("C10").Copy
Worksheets("Database").Range("C2").PasteSpecial xlPasteValues
Worksheets("Coaching Form").Range("C9").Copy
Worksheets("Database").Range("D2").PasteSpecial xlPasteValues
Worksheets("Coaching Form").Range("C11").Copy
Worksheets("Database").Range("E2").PasteSpecial xlPasteValues
Worksheets("Coaching Form").Range("I10").Copy
Worksheets("Database").Range("F2").PasteSpecial xlPasteValues
Application.CutCopyMode = False
End Sub
How can I make this so that it pastes onto the next blank row below the non-blank one?