+ Reply to Thread
Results 1 to 4 of 4

Macro to "Auto Outline" (Group)

  1. #1
    Registered User
    Join Date
    01-16-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Macro to "Auto Outline" (Group)

    Hi,

    I am looking for macro that will help me Auto Outline the rows in my spreadsheet.

    Here is a sample of the data I am working with: Assume the data starts in Cell A2.

    001-Ladanian Tomlinson
    002-Mark Sanchez
    New York Jets
    010-Michael Vick
    011-Desean Jackson
    012-Brad Celek
    Philadelphia Eagles

    Basically I would want a macro that "reads" down and reads and groups all the data for a team once it hits the alphabetic "team" name. My thinking is that if you can somehow read the first three characters and if it is a numeric value then includes those rows to outline until it hits a three character (alpha) combination.

    I hope this makes sense and is easy to do. It will really save me a ton of time.

    Thanks.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro to "Auto Outline" (Group)

    Hi,

    Assuming every row which has a "-" as the fourth character is to be grouped then try:

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-16-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Macro to "Auto Outline" (Group)

    Thank you.

    Tested and it worked. Saves me a ton of time now.

    Consider this SOLVED.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro to "Auto Outline" (Group)

    Quote Originally Posted by excelpuppy View Post
    Thank you.

    Tested and it worked. Saves me a ton of time now.

    Consider this SOLVED.
    Hi,

    That's great.

    When you have a moment would you go to the original post and select the 'SOLVED' option from the drop down box adjacent to the title.

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1