+ Reply to Thread
Results 1 to 10 of 10

Excel Hide - Unhide Columns With Userform

  1. #1
    Registered User
    Join Date
    12-16-2019
    Location
    Alaska
    MS-Off Ver
    office 2010
    Posts
    13

    Excel Hide - Unhide Columns With Userform

    Hi,
    I thought of a solution, since it is difficult to examine data on multi-column sheets, especially on small screens.

    I created a userform . This userform contains a listbox ,a combobox and a checkbox control.
    Worksheets of workbook are listed in combobox .The used columns in the selected sheets are listed in the listbox along with the column headings.
    The selected column or columns from the listbox are hidden.

    Name:  column-hide-unhide.jpg
Views: 1289
Size:  164.9 KB
    Last edited by FDibbins; 01-17-2021 at 02:44 AM.

  2. #2
    Registered User
    Join Date
    01-16-2021
    Location
    Dubai
    MS-Off Ver
    MS Office Home and Student 2019
    Posts
    2

    Re: Excel Hide - Unhide Columns With Userform

    hi Kadr, it would be awesome to use this but ... I get an error

    Attachment 713555

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Excel Hide - Unhide Columns With Userform

    I have removed the link to a website from your file, and reloaded it for you. Please do not advertise other sites here.
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    12-16-2019
    Location
    Alaska
    MS-Off Ver
    office 2010
    Posts
    13

    Re: Excel Hide - Unhide Columns With Userform

    What is error ?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Excel Hide - Unhide Columns With Userform

    Quote Originally Posted by kadr View Post
    What is error ?
    My post was directed at the OP - kadr - not you, apologies for the confusion.

  6. #6
    Registered User
    Join Date
    01-16-2021
    Location
    Dubai
    MS-Off Ver
    MS Office Home and Student 2019
    Posts
    2

    Re: Excel Hide - Unhide Columns With Userform

    Quote Originally Posted by kadr View Post
    What is error ?
    I get the following error:

    Compile error: The code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe attribute

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Excel Hide - Unhide Columns With Userform

    Quote Originally Posted by kadr View Post
    What is error ?
    I have removed the links to other sites from your signature, please do not add them again.

    Thanks
    Admin

  8. #8
    Registered User
    Join Date
    12-16-2019
    Location
    Alaska
    MS-Off Ver
    office 2010
    Posts
    13

    Re: Excel Hide - Unhide Columns With Userform

    Okay,
    I've removed minimize button , try it

    Mod Edit: workbook removed - there was a link to your site in it, and you have been told clearly NOT to add such links to your posts, signature lines or workbooks.
    Last edited by AliGW; 01-21-2021 at 04:52 AM.

  9. #9
    Registered User
    Join Date
    12-16-2019
    Location
    Alaska
    MS-Off Ver
    office 2010
    Posts
    13

    Re: Excel Hide - Unhide Columns With Userform

    What could be the harm if there is a link in the workbook ?

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,623

    Re: Excel Hide - Unhide Columns With Userform

    See post #3.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. VBA to group and hide/unhide columns in several Excel worksheets
    By Kerbs1011 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2016, 06:02 AM
  2. Userform Log-in; Excel Hide and Unhide?
    By artistdedigital in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-24-2015, 09:59 AM
  3. excel 2007 hide/unhide columns macro
    By meecemice in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2013, 10:40 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. should I use hide/unhide with userform?
    By 2funny4words in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2009, 08:13 PM

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