How to get excel to auto-outline into groups using Excel Macro?

Andy77

New Member
Joined
Feb 6, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
So I have a bunch of data in an excel spreadsheet that looks something like this:
Level Item No Description
1 XYZ Project
2 General Items
3 Class A: General Items
4 1 Contractual requirements
1.01 Performance security
1.02 Parent company guarantee
1.03 Advance Payment Bond
4 2 Contractors Insurances
2.1 Contractors Construction
4 3 Specified Requirements
3.01 Establishment
3.15 Removal
3.16 Design
3.17 Operation
2 4 Maintance
4.1 Traffic diversions
4.2 Traffic regulation
3 5 Local access roads within work site areas
5.1 Design, supply and install
5.2 Operation and maintenance
5.3 Handover to other Contractors
1 6 Removal
6.1 Design
6.2 Operation
2 7 Advance Payment Bond
7.1 Contractors Insurances
7.2 Contractors Construction

I'd like to automatically create groups in the worksheet based on value in column A the result should be like this as show in the picture
 

Attachments

  • Screenshot 2024-02-06 102012.png
    Screenshot 2024-02-06 102012.png
    40.7 KB · Views: 4

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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