+ Reply to Thread
Results 1 to 3 of 3

VBA to group and hide/unhide columns in several Excel worksheets

  1. #1
    Registered User
    Join Date
    09-21-2015
    Location
    Virginia, USA
    MS-Off Ver
    MS Office 2010
    Posts
    1

    VBA to group and hide/unhide columns in several Excel worksheets

    I have a workbook with multiple sheets which are all formatted the same and I need to group the same columns on each sheet and I need to be able to hide them when I am finished entering data but then view them again the next time I need to edit the data. I have seen multiple VBA button examples on how to group and hide but not across multiple sheets. The sheets that need to be included are (TEMPLATE:UNIQUE) and the columns on each sheet that need to be grouped are (C:F) for one group and (I:P) for the second group.
    Last edited by Kerbs1011; 03-15-2016 at 05:26 PM.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: VBA to group and hide/unhide columns in several Excel worksheets

    Hi there,

    Take a look at the following code and see if I've understood your requirements correctly:

    Please Login or Register  to view this content.
    The highlighted values may be changed to suit your own requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: VBA to group and hide/unhide columns in several Excel worksheets

    Thank you very much .............................
    Last edited by rajeshn_in; 10-12-2016 at 12:03 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. [SOLVED] PW Protected Macros Needed to 1) Hide Certain Worksheets & 2) Unhide Worksheets & Columns
    By Aimee S. in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-21-2014, 10:49 AM
  2. [SOLVED] Hide/Unhide columns in multiple worksheets based on item chosen in a drop down list.
    By Gattaca2014 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-27-2014, 01:31 PM
  3. Excel Table of Contents: Hide/Unhide Worksheets
    By kcowan86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2013, 05:51 PM
  4. Auto hide/unhide columns in excel
    By BRJ in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-27-2013, 01:53 AM
  5. Excel Hide/Unhide Rows/Columns
    By jregan in forum Excel General
    Replies: 4
    Last Post: 08-03-2010, 11:55 AM
  6. How do I hide and unhide worksheets in Excel 2007?
    By Wayne from Ottawa Canada in forum Excel General
    Replies: 0
    Last Post: 08-13-2006, 10:00 PM
  7. [SOLVED] Hide Unhide Group Box
    By Sheikh Saadi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2006, 02:30 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