+ Reply to Thread
Results 1 to 3 of 3

code for auto grouping columns

Hybrid View

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    ath
    MS-Off Ver
    Excel 2019
    Posts
    53

    code for auto grouping columns

    hi there all,

    i am looking a way for grouping columns that holds dates of a year with code rather than manual.

    attached i have a sample

    thanks in advance
    IDS
    https://www.excelforum.com/attachmen...1&d=1490438056
    Attached Files Attached Files

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: code for auto grouping columns

    Hi ids_73
    This will group columns A-Z
    Option Explicit
    
    Sub GroupTest()
            Columns("A:Z").Columns.Group
    End Sub
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    06-12-2012
    Location
    ath
    MS-Off Ver
    Excel 2019
    Posts
    53

    Re: code for auto grouping columns

    thank you

    this the basic part that i was looking for

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA Code To Auto Sort Z-A In Certain Columns
    By npsnps in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2016, 04:58 PM
  2. Auto sort code to include adjacent columns
    By Frantelle in forum Excel General
    Replies: 3
    Last Post: 11-17-2012, 11:47 AM
  3. [SOLVED] Vba Code: Copy Visible columns ( after using Auto Filter)
    By vidyuthrajesh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2012, 03:28 PM
  4. need code for copy/paste, highlighting columns and enabling auto-filter/freeze panes
    By excelaspire0219 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2009, 05:45 PM
  5. [SOLVED] VBA: Auto Grouping
    By choo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2006, 10:45 AM
  6. [SOLVED] Auto Filter and Grouping
    By Dan Foxley in forum Excel General
    Replies: 1
    Last Post: 06-06-2005, 07:05 PM

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