Sub copyrangeif()'Execute from Source sheet
For i = 1 To Cells(Rows.Count, "a").End(xlUp).Row
With Sheets("yourdestinationsheetname")
lr = .Cells(Rows.Count, "a").End(xlUp).Row + 1
'MsgBox lr
If Len(Trim(Cells(i, "a"))) > 0 _
And Application.CountA(Range(Cells(i, "j"), Cells(i, "l"))) > 0 Then
'MsgBox i
Cells(i, "a").Copy .Cells(lr, "a")
Range(Cells(i, "j"), Cells(i, "l")).Copy .Cells(lr, "b")
End If
End With
Next i
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"thomsonpa" <(E-Mail Removed)> wrote in message
news:3EB66B36-4481-4E5C-8403-(E-Mail Removed)...
>I am looking vor the visual basic code to perform the following action.
> I have column "a" with data in every cell, columns "j, k and l 'may have
> data in them.
>
> If there is data in j, k or l I want to copy the data from "a" into
> another
> worksheet in column "a", then the data in j, k or l in either b, c or d on
> the other worksheet on the same row number as the information in column a.
> Since column a has over 120 rows I am looking for a simple solution to
> this.
> Any help in pointing me in the right direction would be helpful.