+ Reply to Thread
Results 1 to 5 of 5

Hide/Show Columns based on Cell Value

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Hide/Show Columns based on Cell Value

    Good Morning!

    Really new to using excel and was hoping someone could help me. So i have a spreadsheet which looks at an accounts values year on year. I have two worksheets, 'Data' which i enter the expiring and renewal values and 'Summary' which summarises the values.

    What i would like is a code for View Code which automatically updates, that hides columns C,D on my Summary sheet when there are no expiring values (columns A,B,C,D) entered on my Data worksheet.

    Any and all help is greatly appreciated.

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Hide/Show Columns based on Cell Value

    could u plz attached sample workbook, its make very easy to resolve
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Registered User
    Join Date
    07-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Hide/Show Columns based on Cell Value

    Hi Naveed,

    Please find the worksheet attached.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Hide/Show Columns based on Cell Value

    what exactly u want the output, it seems there is not sample data in dump sheet.

    show one example in attached sample workbook.

  5. #5
    Registered User
    Join Date
    07-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Hide/Show Columns based on Cell Value

    Essentially what i'd want is if there is no data in columbs A/B/C/D on the Dump Zone tab then columns C/D to be hiden on the Summary tab, which is shown in the attached wokrsheet (without C/D being hidden clearly, as that is what i'm here for).

+ 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 Or Show An Image Based On A Cell Value
    By kc27315 in forum Excel General
    Replies: 21
    Last Post: 06-12-2023, 03:55 AM
  2. [SOLVED] Hide/Show rows based on the value in a cell
    By PatRiot199 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-11-2012, 11:52 PM
  3. Show/Hide columns by checkbox and cell text
    By ksmoore in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2010, 02:20 PM
  4. [SOLVED] Hide/Show Command button based on cell value
    By paxile2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2010, 08:59 AM
  5. Hide/Show columns based on Day of week
    By excelbobabc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2009, 11:07 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