Maygirl123
New Member
- Joined
- Dec 16, 2021
- Messages
- 1
- Platform
- Windows
Hello guys,
I am quite new to VBA world and can't really figure out the code correctly. I have two sheets, Users and Sellers, which are identical, except that Support sheet has a newly added G column, which I want Macro to skip. For now the code before the G column was this:
Range("A5:I100").Select
Selection.Copy
Sheets("Sellers").Select
For X = 1 To 1000
If Range("B4").Offset(X).Value < 1 Then
Range("A4").Offset(X).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Users").Select
Range("A5:I100").ClearContents
Exit For
End If
How can I tell it to skip G column cause it is pasting the information in that column too. Thank you all for the help!
I am quite new to VBA world and can't really figure out the code correctly. I have two sheets, Users and Sellers, which are identical, except that Support sheet has a newly added G column, which I want Macro to skip. For now the code before the G column was this:
Range("A5:I100").Select
Selection.Copy
Sheets("Sellers").Select
For X = 1 To 1000
If Range("B4").Offset(X).Value < 1 Then
Range("A4").Offset(X).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Users").Select
Range("A5:I100").ClearContents
Exit For
End If
How can I tell it to skip G column cause it is pasting the information in that column too. Thank you all for the help!