pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
Please make this code work
When i try run this code in single sheet it works without those highlighted in BOLD.
I'm trying to run from one sheet to another...
When i try run this code in single sheet it works without those highlighted in BOLD.
I'm trying to run from one sheet to another...
Code:
Sub try1()
x = 1
y = 14
c = 2
For chk = x To y
[B]Sheets("DATAsample").Select[/B]
If Cells(chk, c).Value = "x" Then
Cells(chk, c).Offset(0, -1).Resize(, 2).Copy
[B]Sheets("Sheet1").[/B]Range("D1").Select
Do Until ActiveCell.Value = ""
ActiveCell.Offset(1, 0).Select
Loop
ActiveSheet.Paste
Else
'nothing
End If
Next chk
Application.CutCopyMode = False
End Sub