Search, Copy, Paste to another tab

rwallage

New Member
Joined
May 28, 2006
Messages
34
Hi,

We get a spreadsheet from our Time & Attendance system where we need to copy/paste rows from outsourced companies to another tab in the same file. Manually we would sort the spreadsheet by company number, and than copy /paste the different ranges, each to it's own tab. As the people who are dealing with this are not too well versed in Excel, I am trying to write a macro for this, but got hopelessly stuck. The problem I have is that the total number of rows (size of the range) changes every month, and so do the amount of rows for each company. How would I go about writing this?
The attached jpg is a screenshot of part of the file. Column B is the company number.

help...
 

Attachments

  • Capture.JPG
    Capture.JPG
    174.7 KB · Views: 11

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
I can help . but the language is different so I cant understand . Please share the excel in English language
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,590
Members
449,039
Latest member
Arbind kumar

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