Copying a master sheet to multiple sheets VBA

rusted314

Board Regular
Joined
Jan 12, 2010
Messages
74
Hi,
I have a master worksheet call "All Locations". It contains 23000 rows of data for 66 of our locations. The data across is in columns A through S.

Each location starts 339 rows after the next ie. location 1 begins on row 1, Location 2 begins on row 339, location 3 begins on row 679 etc.

I need a macro that will take the data for each location and copy it into its own sheet so I will have 66 sheets with 339 rows of data in each (columns A through S).

The names of the locations are in column F and copied down through the 23000 rows (with the names chaging every 339 rows to be with its respective center). If these could be on the worksheets to identify the sheet that would be great but not mandatory.

Thanks
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

rusted314

Board Regular
Joined
Jan 12, 2010
Messages
74
I forgot to mention the I am using vlookups in my master document so the data would need to be copied and pasted values.
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,105,998
Messages
5,508,682
Members
408,690
Latest member
Lip Renan

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top