B4L4KS
Board Regular
- Joined
- Mar 7, 2011
- Messages
- 69
hello,
i have another problem with another worksteet, this involves customers being entered into a database and then moving down a line,
this is the code that i have
Sub adddetails()
'
' adddetails Macro
'
sourcerows = Array(8, 10, 12, 14, 16)
targetareas = Array("C", "D", "E", "F", "G")
targetrow = Sheets("Customers").Range("C" & Rows.Count).End(xlUp).Offset(1).Row
Sheets("Join Loyalty Scheme").Select
For i = LBound(sourcerows) To UBound(sourcerows)
Range("D" & sourcerows(i)).Resize(1, 1).Copy _
Destination:=Sheets("Customers").Range(targetareas(j) & targetrow)
Next
Application.CutCopyMode = False
End Sub
it doent work
anyhelp
kristian
note all the cells are correct just the visual basic is incorrect
i have another problem with another worksteet, this involves customers being entered into a database and then moving down a line,
this is the code that i have
Sub adddetails()
'
' adddetails Macro
'
sourcerows = Array(8, 10, 12, 14, 16)
targetareas = Array("C", "D", "E", "F", "G")
targetrow = Sheets("Customers").Range("C" & Rows.Count).End(xlUp).Offset(1).Row
Sheets("Join Loyalty Scheme").Select
For i = LBound(sourcerows) To UBound(sourcerows)
Range("D" & sourcerows(i)).Resize(1, 1).Copy _
Destination:=Sheets("Customers").Range(targetareas(j) & targetrow)
Next
Application.CutCopyMode = False
End Sub
it doent work
anyhelp
kristian
note all the cells are correct just the visual basic is incorrect