+ Reply to Thread
Results 1 to 2 of 2

Macro to unhide a row and a column

  1. #1
    Registered User
    Join Date
    04-22-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    17

    Macro to unhide a row and a column

    Hi everyone

    I have two questions. I'm really new to VBA so please give as much detail as possible. I've attached a workbook to this post.

    Unhiding rows

    I have two companies, company A and company B. I always use company A, but I only use company B in certain situations. If I select a checkbox (in cell E16) then I'm saying, yes I am going to use company B. If I'm using company B, then I want rows 19 and 20 to become unhidden after checking the box in E16. If I uncheck the box, then I want rows 19 and 20 to be hidden.

    This is the macro that I currently have and it does the exact opposite of what I want (lol).

    What am I doing wrong?

    Unhiding columns


    Similar to above, if I check E16 and I'm saying that I'm using company B, then I want column F to become unhidden. And if the box remains unticked, then I want column F to be hidden. What macro would I need for that?

    Thanks so much!
    Attached Files Attached Files
    Last edited by bluelillies; 03-15-2017 at 10:24 PM.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Macro to unhide a row and a column

    Something like this should work

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

+ 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] Macro to unhide & hide rows based on column value
    By qvfr034 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-15-2020, 03:00 PM
  2. [SOLVED] VBA macro that hide and unhide column to respective rows based on first column value
    By janine6192 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-14-2013, 06:21 PM
  3. Macro to Hide/Unhide Rows Based on Results in Column Equation
    By jwhite0720 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2011, 04:59 PM
  4. Replies: 1
    Last Post: 12-27-2010, 07:10 PM
  5. column hide/unhide macro
    By chiz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2008, 11:05 AM
  6. Check Box Macro to hide and unhide a column
    By Daphne in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-26-2006, 08:55 AM
  7. How do I unhide a column when format/column/unhide won't work
    By lincolnblaze in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-13-2005, 11:45 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