Copy Data from page 1 to new sheet

VBA Help

New Member
Joined
Jul 31, 2020
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I'm very new to using macros and am having trouble finding a code that works how I want it to. My column G is account numbers and I want to create a code that will look through column G and copy each account and all the rows to a new sheet and label it by that account. So the accounts are are in order but there are blank rows between between some of the columns. For example account A has account information separated by different employees names and I want to be able to copy all Account A information on to a new sheet, labeled A and to keep all of the formatting that I have on my main page including the blank rows. I have come across some VBA codes that can create new sheets that are labeled correctly but it is taking all of the data from my main sheet and copying it to each new sheet. Any help would be appreciated.

Thank you
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Please post a screenshot of example data.
 
Upvote 0
This is how the data should look when I run my report and have it formatted the way I want.
.
Sheet 1.PNG


And this is how I want it to look for Sheet A

Sheet A.PNG


And for Sheet B

Sheet B.PNG


This is just a small sample of what I would like the VBA code to do. But there are normally 100's of accounts that I would have to sort through and separate all that data. Thank you for your help.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

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