Copy and paste

E

Eric

Hello all,

I am trying to copy information from one page to another but I only want to
copy the last 4 test results that corrispond to my Target.

Sheets("jmf targets").range("E27")~~~> This is the target value =4059


sheets("test Database")~~~> This is where the tests are stored Information
starts on row 27 of this sheet
A B C D..........AC
4059~~~> copy this line (A-AC)
333
333
4059~~~> Copy this line (A-AC)
4059~~~> Copy this line (A-AC)
222
4059~~~> Coyp this line (A-AC)

Paste these tests on sheets("Last four")~~~> Starting on row 9

Any help would be appreciated.......Eric
 
D

Don Guillett

You could use data>filter>autofilter>filter the appropriate column for your
target>copy visible cells.
 
E

Eric

Don,
I am looking for this in a macro style.

Don Guillett said:
You could use data>filter>autofilter>filter the appropriate column for your
target>copy visible cells.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(e-mail address removed)
 
D

Don Guillett

The macro recorder is your friend. Try it and then post your solution and
additional questions.
 

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

Top