Hello, I,ve got the following code that needs adding to, but I don't know how. Can YOU help?
Just before I run my macro I want to copy the data on the same row, but in columns A to C. The distination is to a sheet called "Coins". I want to 'find' its paste location by finding the first "0" in column D, and then offsetting back to column A.
Thankyou in advance!
Andrew
Sub CoinsRoutine()
Range("z3"
.Select
Do Until ActiveCell.Value = ""
ActiveCell.Copy Destination:=ActiveCell.Offset(0, -22)
'run my macro'
ActiveCell.Offset(0, -22).ClearContents
ActiveCell.Offset(1, 0).Select
Loop
Range("d3"
.Select
End Sub
Just before I run my macro I want to copy the data on the same row, but in columns A to C. The distination is to a sheet called "Coins". I want to 'find' its paste location by finding the first "0" in column D, and then offsetting back to column A.
Thankyou in advance!
Andrew
Sub CoinsRoutine()
Range("z3"
Do Until ActiveCell.Value = ""
ActiveCell.Copy Destination:=ActiveCell.Offset(0, -22)
'run my macro'
ActiveCell.Offset(0, -22).ClearContents
ActiveCell.Offset(1, 0).Select
Loop
Range("d3"
End Sub