+ Reply to Thread
Results 1 to 5 of 5

Hide and unhide every 2nd, 3rd, 4th and 5th column of the data

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2007
    Posts
    60

    Hide and unhide every 2nd, 3rd, 4th and 5th column of the data

    I have data with 200+ columns,
    I need a macro that will hide and Unhide every 2nd, 3rd, 4th and 5th column of the data set, Is it possible to make some button for doing Hide and Unhide this columns ?
    I have attached reference file.

    Thanks in advance
    Attached Files Attached Files
    Last edited by sandubandu; 02-24-2021 at 04:39 AM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Hide and unhide every 2nd, 3rd, 4th and 5th column of the data

    Please try

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-05-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Hide and unhide every 2nd, 3rd, 4th and 5th column of the data

    Thank you very much !

  4. #4
    Registered User
    Join Date
    06-05-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Hide and unhide every 2nd, 3rd, 4th and 5th column of the data

    what to do if I want to apply this macro from column number 37 onward, means I don't want first 37 columns get hidden.

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Hide and unhide every 2nd, 3rd, 4th and 5th column of the data

    i = 2 hide 2 …
    resize(, 4) to hide 2,3,4,5

    i = 37 hide 37 …
    resize(, 4) to hide 37,38,39,40

    Copy to clipboard
    Please Login or Register  to view this content.

+ 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] Name Sheets According To Names on Column B and Hide or Unhide Based on Column C
    By realbestpete in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-14-2021, 12:38 AM
  2. Hide/Unhide Rows based on column data using checkbox
    By ricklberry in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2015, 11:39 AM
  3. [SOLVED] Way to Hide/Unhide a column? Please Help.
    By jtmoore in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-13-2014, 08:42 AM
  4. hide/unhide column with new row
    By cameron213 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2013, 05:59 PM
  5. [SOLVED] VBA macro that hide and unhide column to respective rows based on first column value
    By janine6192 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-14-2013, 06:21 PM
  6. Hide/Unhide Column
    By Elundari in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2012, 11:22 AM
  7. VBA to hide a column and unhide it
    By Frederic in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2005, 11:05 AM

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