+ Reply to Thread
Results 1 to 7 of 7

Hide/Unhide Columns

  1. #1
    Registered User
    Join Date
    11-30-2015
    Location
    Southampton
    MS-Off Ver
    MS Office 2013
    Posts
    4

    Hide/Unhide Columns

    Hi,

    I have to make a spread sheet for enquiries. That my colleagues (with way less excel experience) can use it as well, I have to keep it very simple and straight forward.

    In line 1-4 you have to type in information like customer, country and currency. Out of those information, you get the description and two different prices from two different price lists to compare for the product code you typed in in column A.

    This first part of a green table/box.

    Now I need a second box in another color for the margin. But therefore the box is just required sometimes, I would like to hide this box if it is not needed.
    In B7 you have to answer the question, if you want to those additional information as well. The whole box should appear/disappear by yes/no. Till now I hide/unhide the written information with "=if(B7="YES"...), but with this formula I cannot hide the color from the box and the table at its self.

    Is there a formula for that as well or even a completely easier way?

    Thanks in advance and a nice Sunday,

    Dami123

    PS: This is my first post and English is not my first language, so I hope, it is readable. I am pleased as well for tips, how I can describe my problem better.

  2. #2
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    607

    Re: hide/unhide columns

    I think you could do this by using conditional formatting to choose the cell colour based on contents of B7.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2507 Win 11
    Posts
    24,918

    Re: hide/unhide columns

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    11-30-2015
    Location
    Southampton
    MS-Off Ver
    MS Office 2013
    Posts
    4

    Re: hide/unhide columns

    Hi there,

    thanks for the help, unfortunately I have no idea what you are talking about.

    I did a little bit of research on the Internet and I found a Code and changed it a little bit(don't know if it is still the right folder):
    Please Login or Register  to view this content.
    Now the Columns H:K disappear, if I change the field G1. Is there any opportunity to change this code, that those Columns just appear/disappear with yes/no?

    Thanks in advance!

    Dami123
    Last edited by alansidman; 12-07-2015 at 09:26 PM.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2507 Win 11
    Posts
    24,918

    Re: hide/unhide columns

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

  6. #6
    Registered User
    Join Date
    11-30-2015
    Location
    Southampton
    MS-Off Ver
    MS Office 2013
    Posts
    4

    Re: hide/unhide columns

    Sorry and thank you Alansidman, I was not aware of that.

    dami123

  7. #7
    Registered User
    Join Date
    11-30-2015
    Location
    Southampton
    MS-Off Ver
    MS Office 2013
    Posts
    4

    Re: hide/unhide columns

    Hello,

    sorry for the delay, please find attached the example spread sheet.

    Regards,

    dami123
    Attached Files Attached Files

+ 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. Hide and Unhide Columns
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-21-2015, 09:22 AM
  2. VBA will hide columns, but not unhide them
    By JontyRhodes in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-16-2015, 12:54 PM
  3. Hide and Unhide Columns
    By DODGE in forum Excel General
    Replies: 3
    Last Post: 11-27-2011, 05:36 PM
  4. Hide/Unhide columns
    By N164PJ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2008, 02:30 AM
  5. Hide/Unhide Columns
    By Jonsson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2005, 06:24 AM
  6. hide / unhide columns
    By appeng in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2005, 07:06 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