VBA make outlines for row classess

sh1ne

New Member
Joined
Jul 3, 2017
Messages
33
Office Version
  1. 2016
Platform
  1. Windows
Hi Guys,

I dont know that I correctly described the idea but let me show what I mean:
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Type[/TD]
[TD]Pcs[/TD]
[/TR]
[TR]
[TD]Random name 1[/TD]
[TD]A[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Random name 2[/TD]
[TD]A[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Random name 3[/TD]
[TD]B[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Random name 4[/TD]
[TD]B[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Random name 5[/TD]
[TD]C[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Random name 6[/TD]
[TD]C[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]


Now I want make a macro which will be separating rows with different types by outline. For Example types A will be grouped into 1 "outline ribbon", next will be B then C. It should be determined by type. Just like there:
JN4KGOm.png




Thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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