Copy rows to current sheet if condition meet

ohexcell_ineedu

New Member
Joined
Jan 28, 2012
Messages
47
Hey guys,

I am wanting to copy certain rows (which meet a condition) to the current selected sheet in an excel document, to create a daily report of current jobs.

My work flow is:

I have a register which each work request goes in. Each request is assigned a status, whether it is an "Open" job, an "On Hold" job or a "Closed" job.

I have a report template and a macro that I found that lets me copy the template and rename it. My naming convention is to call it todays date in reverse, ie 120804.

Once I copy the template and rename it, I want a button on the new template (say 120804) which will then copy all "Open" jobs to row 26 and below.

I would also like to the run another macro that will then insert the "On Hold" jobs beneath the "Open" jobs.

My current macro replaces the contents of the previous paste, and I'm unable to work out how to modify it so it paste to the currently opened sheet, not sheet2.

Click on the following link to be able to download the example. https://dl.dropbox.com/u/9154762/Copy rows to current sheet.xlsm

If i need to further explain things please feel free to ask me thanks.

Any and all help from this forum would be greatly appreciated!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,215,436
Messages
6,124,869
Members
449,192
Latest member
MoonDancer

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