Code help

  • Thread starter Thread starter Anthony
  • Start date Start date
A

Anthony

Hi

I have this bit of code that is part of a macro to search for and copy paste
data when a match is found.


wks1.Cells(iRow, 1).EntireRow.Copy Destination _

I don't want the ENTIRE ROW to be copied just the range A:O
can anybody adapt the code for me please to carry this out

thanks
 
Thanks Don

Don Guillett said:
wks1.range(Cells(iRow, "a"),cells(irow,"o")).Copy Destination _


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(e-mail address removed)
 
wks1.Cells(iRow, 1).resize(1,15).Copy Destination _

Is another way.
 
Just qualifying the ranges:

wks1.range(wks1.Cells(iRow, "a"),wks1.cells(irow,"o")).Copy Destination _
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top