VBA: How to Create Multiple Sheets from filtered data contained in a column

ShazzaBoom

New Member
Joined
Dec 1, 2015
Messages
6
Hi

I am a newbie to VBA coding in Excel and this one is just too complex for me to get my head around so reaching out to this great forum I have had so much success with :)

If you could help by providing some VBA code that will do the following:
Have a button that when clicked would create multiple tabs for all the various possibilities in the 'Beverage' column. Of course this list will grow/change
i.e. A tab for 'Beer' and would include CustA/D/E
All Customer data that has 'Beer' would be copied to the new 'Beer' tab
Loop for next Beverage Type[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Country[/TD]
[TD]Beverage[/TD]
[/TR]
[TR]
[TD]CustA[/TD]
[TD]England[/TD]
[TD]Beer; Wine[/TD]
[/TR]
[TR]
[TD]CustB<strike></strike>[/TD]
[TD]Canada[/TD]
[TD]Cider; Whisky; Wine[/TD]
[/TR]
[TR]
[TD]CustC<strike></strike>[/TD]
[TD]Australia[/TD]
[TD]Cider[/TD]
[/TR]
[TR]
[TD]CustD<strike></strike>[/TD]
[TD]India[/TD]
[TD]Beer[/TD]
[/TR]
[TR]
[TD]CustE<strike></strike>[/TD]
[TD]USA[/TD]
[TD]Beer; Whisky[/TD]
[/TR]
</tbody>[/TABLE]


Initially I started thinking this wouldn't be too hard, but is more and more complex the more I look at it, or is it?
Hopefully a smart cookie or two can help me out

Thanks in advance
ShazzaBoom
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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