Excel Jason
New Member
- Joined
- Oct 17, 2022
- Messages
- 30
- Office Version
- 365
- Platform
- Windows
I have a VBA script that copies values from one tab and pastes them in the next available row on another tab; However, it pastes the values next to each other. Two of the four values I need pasted a few cells down. Example:
Current Script
I suspect a quick edit to my code but I'm having a hard time. Thanks!
Current Script
VBA Code:
Sub Button2()
Application.ScreenUpdating = False
Dim xSheet As Worksheet
Set xSheet = ActiveSheet
If xSheet.Name <> "Definitions" And xSheet.Name <> "fx" And xSheet.Name <> "Needs" Then
Worksheets("Dashboard").Range("F7:G7,Q7,S7").Copy
Worksheets("SKU Tracker").Range("C" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
End If
Application.ScreenUpdating = True
End Sub
I suspect a quick edit to my code but I'm having a hard time. Thanks!