+ Reply to Thread
Results 1 to 6 of 6

Applying Macro to more than 30 columns with collapsing rows fitting criteria

  1. #1
    Registered User
    Join Date
    01-20-2020
    Location
    Manama, Bahrain
    MS-Off Ver
    Office 2016 Professional
    Posts
    3

    Applying Macro to more than 30 columns with collapsing rows fitting criteria

    The code below is what I was using to repeat across the WorkSheet, but found I can only apply to 30 Columns, when I need 100 or more. How can I get the whole same macros to apply to all columns the same way?
    Column A and B have text descriptors in them.


    Please Login or Register  to view this content.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Pepe Le Mokko; 01-21-2020 at 03:53 AM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Applying Macro to more than 30 columns with collapsing rows fitting criteria

    It's hard to work with a picture. Attach a copy of your file and include a detailed explanation of what you would like to do referring to specific cells, rows, columns and worksheets. If the workbook contains confidential information, you could replace it with generic data.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    01-20-2020
    Location
    Manama, Bahrain
    MS-Off Ver
    Office 2016 Professional
    Posts
    3

    Re: Applying Macro to more than 30 columns with collapsing rows fitting criteria

    Mumps, Thank you! File uploaded. The process of the cells cells would be the same across the columns. I would like to get past 30 columns limit.

    I tried to figure it out, but its not working for me in my attempted to achieve he desired outcome.
    Last edited by Guessfox; 01-21-2020 at 12:09 AM.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Applying Macro to more than 30 columns with collapsing rows fitting criteria

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I did it for you this time. Please read forum rules. Thanks

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Applying Macro to more than 30 columns with collapsing rows fitting criteria

    Try:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-20-2020
    Location
    Manama, Bahrain
    MS-Off Ver
    Office 2016 Professional
    Posts
    3

    Re: Applying Macro to more than 30 columns with collapsing rows fitting criteria

    Mumps1,

    When I change to another column the selection of "Yes" does not auto-expand the expected rows and changing columns without data does not auto-collapse rows.
    Last edited by Guessfox; 01-21-2020 at 12:23 PM.

+ 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. Collapsing Rows, keeping nonblank columns
    By SWMagic in forum Excel General
    Replies: 1
    Last Post: 10-06-2016, 03:13 AM
  2. [SOLVED] Collapsing or Un-Collapsing Grouped Rows using VBA
    By rz6657 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2015, 12:39 PM
  3. [SOLVED] Applying a Formula Across Columns for Multiple Rows
    By whydoesntthiswork in forum Excel General
    Replies: 3
    Last Post: 03-03-2014, 03:44 PM
  4. Macro for copying columns, rows, creating sheets, by criteria
    By JCOENG in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2010, 02:04 PM
  5. Applying extra criteria when using macro to password protect sheets
    By Zyphon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2007, 11:03 AM
  6. Expand & Collapsing Rows/Columns
    By telton in forum Excel General
    Replies: 1
    Last Post: 08-29-2007, 03:47 AM
  7. [SOLVED] Collapsing Grouped rows by Macro
    By Philip J Smith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2006, 09:30 AM

Tags for this Thread

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