Very Complicated VBA Question

trentonirons

New Member
Joined
Mar 27, 2017
Messages
17
Hi all!

Hope today is finding you well. I have a VBA question for you. I need a macro to do a couple of things:

1) Move all rows with unique values in Column A to their own sheets within the same workbook. (I.e all rows with the value "WE Region" in column A need to be moved to the WE Region sheet). If the new sheet name doesn't exist, it needs to be created.

2) Provide space for me to copy some simple formulas to create some high level analysis on each sheet (i.e SUM formulas based on a dynamic range, etc.)

3) Save all tabs as their own worksheets in the same folder as the master workbook.

Can anyone help me with this? I am very new to VBA :(
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Can anyone help me with this? I am very new to VBA :(

trentonirons,
Welcome to the Forum.
What you have requested has been requested previously and a search would have revealed as much...so I will just point you in the direction you need to follow:

Add Sheets if Required and Sort Data to Each Sheet
http://www.mrexcel.com/forum/excel-questions/862440-visual-basic-applications-sorting.html
The code at the above link is sorting by the list of names in column A on Sheet1, then copying the row and pasting it into another worksheet that is either:

1. created if that name does not exist in the same workbook
OR...
2. If the name does exist, it will be pasted into that existing worksheet.

That should get you going.
Perpa
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,747
Members
448,989
Latest member
mariah3

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