+ Reply to Thread
Results 1 to 3 of 3

VBA Expand/Collapse grouped columns based on cell value

  1. #1
    Registered User
    Join Date
    06-23-2020
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    3

    VBA Expand/Collapse grouped columns based on cell value

    Hi All,

    I'm hoping to obtain VBA code to expand /collapse grouped columns if a cell contains any number / is empty.

    For example - if cell A1 contains any number, expand grouped columns (B through D). If cell A1 does not contain a value, collapse grouped columns (B through D).

    Thanks!

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,222

    Re: VBA Expand/Collapse grouped columns based on cell value

    The important thing is, is A1 the result of the formula or do you enter the value manually?

    Artik

  3. #3
    Registered User
    Join Date
    06-23-2020
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    3

    Re: VBA Expand/Collapse grouped columns based on cell value

    Hi Artik,

    The number in A1 is resulting from a formula.

    Thanks,

    Jason.

+ 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. [SOLVED] How to get drop-like(V) collapse-expand in grouped rows.
    By Excelforum*ser_mH7 in forum Excel General
    Replies: 3
    Last Post: 04-20-2018, 02:14 AM
  2. vba to expand / collapse columns
    By chasoe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2017, 03:45 AM
  3. Expand/collapse grouped data based on a dropdown cell
    By asurandy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2015, 11:17 AM
  4. [SOLVED] VBA Code - Expand/Collapse Grouped Columns
    By honger in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2014, 06:26 PM
  5. Excel Macro to Collapse/Expand grouped rows and columns
    By magjayeck in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2013, 10:58 AM
  6. Columns - Expand and Collapse
    By Cecil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-04-2008, 10:54 AM
  7. Expand/Collapse Grouped Data in Protected Worksheet
    By Robert Slattery in forum Excel General
    Replies: 4
    Last Post: 11-08-2005, 03:10 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