+ Reply to Thread
Results 1 to 12 of 12

Hiding columns in excel

  1. #1
    Registered User
    Join Date
    02-27-2018
    Location
    Dublin, Ireland
    MS-Off Ver
    2013
    Posts
    8

    Hiding columns in excel

    Hello
    I have a spreadsheet with about 300 columns and on one row the value is either 'PRINT' or 'DON'T PRINT' - I need to hide the columns with the 'DON'T PRINT' value. PLEASE.... BTW I have never used a macro before ... so I would really need Noddy and Big Ears instructions. Thanks cli

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Hiding columns in excel

    Can you provide a sample Excel file that represent what your Excel sheet is going to look like?

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Hiding columns in excel

    Press Alt-F11 to open the Visual Basic Editor.

    Click Insert > Module.

    In the module which is created, paste the following code, and change the lRow and sHide values to suit your requirement:
    Please Login or Register  to view this content.
    Close the Visual Basic Editor to return to Excel.

    Press Alt-F8, select "HideColumnsByValue" and click "Run"


    If you want to show all columns again, you could add this code to the module in the Visual Basic Editor, and run the macro "UnhideAllColumns":
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    02-27-2018
    Location
    Dublin, Ireland
    MS-Off Ver
    2013
    Posts
    8

    Re: Hiding columns in excel

    Hi
    I can't figure out how to attach the spreadsheet .....
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-27-2018
    Location
    Dublin, Ireland
    MS-Off Ver
    2013
    Posts
    8

    Re: Hiding columns in excel

    oh apparently I did figure it out ....

  6. #6
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,256

    Re: Hiding columns in excel

    You can using manipulate
    Please Login or Register  to view this content.
    Last edited by daboho; 03-05-2018 at 09:04 AM.
    "ThankyouFor Attention * And Your Help!!"

  7. #7
    Registered User
    Join Date
    02-27-2018
    Location
    Dublin, Ireland
    MS-Off Ver
    2013
    Posts
    8

    Re: Hiding columns in excel

    THANK YOU ... THANK YOU ... THANK YOU
    cli

  8. #8
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Hiding columns in excel

    Who are you thanking - which solution worked for you?

  9. #9
    Registered User
    Join Date
    02-27-2018
    Location
    Dublin, Ireland
    MS-Off Ver
    2013
    Posts
    8

    Re: Hiding columns in excel

    Hi
    Apologies - the suggestion from JieJenn worked perfectly.
    Tks
    Cli

  10. #10
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Hiding columns in excel

    I don't see a solution from JieJenn, only a suggestion to attach your workbook?

  11. #11
    Registered User
    Join Date
    11-15-2012
    Location
    port charlotte, florida
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Hiding columns in excel

    i would like some help hiding columns as well, do i need to start my own thread?

    i export a monthly report to excel and need to hide the same columns each month. can this be made easier? i need to hide c:r, v:z, and ae:av
    what is the easiest way to do this? step by step please formula, vba, macro... but i am a beginner..

  12. #12
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Hiding columns in excel

    Quote Originally Posted by bsesender View Post
    i would like some help hiding columns as well, do i need to start my own thread?
    Yes.



    Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

+ 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] Hiding columns in excel 2007 vba
    By random379 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2018, 12:09 AM
  2. Hiding columns in excel without hiding form button
    By rename in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2013, 01:38 AM
  3. Replies: 9
    Last Post: 09-19-2012, 05:31 AM
  4. Conditionally hiding columns in Excel using VBA
    By MrV in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2012, 05:30 PM
  5. Un-Hiding and Hiding Columns based on Drop-Down Values in a Column.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 10-30-2011, 09:24 AM
  6. Un-Hiding and Hiding Columns based on Drop-Down Values in a Column.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2011, 06:49 AM
  7. Replies: 2
    Last Post: 10-18-2005, 10:05 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