A
arceaf
Hi,
I currently have a VBA that copies info from one sheet, and pastes i
onto another sheet. The code is bellow. Normally, the text in th
material is pasted onto cells A2, B2 and E2 when I run the macro (
linked it to a button, so it runs when i click the button). I want th
same info to be copied but, insted, I want it to be copied to a ro
below every time I click the button.
For example:
1 click - material is copied and pasted to A2, B2, E2
2nd click - the same material is copied, but onto cell A3, B3, E3
3rd click - the same material is copied, but onto cell A4, B4, E4
Here's the current code I have:
Private Sub CommandButton2_Click()
Range("C2").Copy
Sheets("Recommendations").Range("A2").PasteSpecial Paste:=xlPasteValues
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Sheets("Decision Matrix").Range("G55").Copy
Sheets("Recommendations").Range("B2").PasteSpecial Paste:=xlPasteValues
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Sheets("Decision Matrix").Range("H55").Copy
Sheets("Recommendations").Range("E2").PasteSpecial Paste:=xlPasteValues
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End Sub
Thank you for the help
I currently have a VBA that copies info from one sheet, and pastes i
onto another sheet. The code is bellow. Normally, the text in th
material is pasted onto cells A2, B2 and E2 when I run the macro (
linked it to a button, so it runs when i click the button). I want th
same info to be copied but, insted, I want it to be copied to a ro
below every time I click the button.
For example:
1 click - material is copied and pasted to A2, B2, E2
2nd click - the same material is copied, but onto cell A3, B3, E3
3rd click - the same material is copied, but onto cell A4, B4, E4
Here's the current code I have:
Private Sub CommandButton2_Click()
Range("C2").Copy
Sheets("Recommendations").Range("A2").PasteSpecial Paste:=xlPasteValues
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Sheets("Decision Matrix").Range("G55").Copy
Sheets("Recommendations").Range("B2").PasteSpecial Paste:=xlPasteValues
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Sheets("Decision Matrix").Range("H55").Copy
Sheets("Recommendations").Range("E2").PasteSpecial Paste:=xlPasteValues
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End Sub
Thank you for the help