+ Reply to Thread
Results 1 to 4 of 4

I want to create two button in Excel sheet in which once can hid selected columns and the

  1. #1
    Registered User
    Join Date
    06-30-2012
    Location
    Gujarat
    MS-Off Ver
    Excel 2013
    Posts
    36

    Post I want to create two button in Excel sheet in which once can hid selected columns and the

    I want to create two button in Excel sheet in which once can hid selected columns and the second one unhides the columns.

    I just want the code to perform this action. For eg

    I am using a excel sheet in which I feed data daily. I need to hide columns G to N frequently and also unhide them. I have to select the cels and then choose hide or unhide. I want to develope such a system which just performs my action without selecting or selectin unhiding of cells.

    If there is any way please update. I will be very greatful to you.

    Regards
    Ashish

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: I want to create two button in Excel sheet in which once can hid selected columns and

    Hi Ashish,

    You could use the "record macro" function built in to Excel to record the hiding and unhiding of columns (separately) and then associate the two macros with two buttons.

    That way you wont have to write any code at all as Excel will do it all for you.

    Hope that helps.

    S.
    If I've been of help, please hit the star

  3. #3
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: I want to create two button in Excel sheet in which once can hid selected columns and

    maybe this
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  4. #4
    Registered User
    Join Date
    06-26-2012
    Location
    Ludhiana
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: I want to create two button in Excel sheet in which once can hid selected columns and

    I know only one option to hide and unhide a column right c;lick on the selected column and choose the hide and un hide opinion.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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