Lookup easy part

sey

New Member
Joined
Apr 28, 2011
Messages
35
Hi,
To make a difficult question easy, i made an example of what i want (but ofcourse in a complicated exercise). I want to copy each number in the selection (called "firstrow") to another place (in the exercise another worksheet but here i showed it in the same worksheet). And when he is done with the first row, he goes automaticly to the second row and then the third row till a row is empty.

For Each acell In Range("firstrow")
If acell.Value > 0 Then
acell.copy

and then paste it .... the other part of the code is already done.

You see the code i have is just for the firstrow and not for the second and third.
I just want that he copy each cell from a range to another place, and if the first range is down he goes to the second and so on till a rows is empty.


Kind regards
Sey













iptw6x.jpg
[/IMG]
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,224,602
Messages
6,179,845
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top