+ Reply to Thread
Results 1 to 6 of 6

Macro to Hide Row Once Date is Entered Into a Cell

  1. #1
    Registered User
    Join Date
    12-15-2023
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    8

    Macro to Hide Row Once Date is Entered Into a Cell

    Hello. This is a three-tiered question. The first, what VBA code do I need to program the Summary for Invoicing tab to hide a row once a date is entered in column a?

    The second question: Can I hide an entire tab using VBA code? If so, what code will I need for each tab (that is not the Summary tab) that once 'Y' is typed in column S, the entire tab is hidden?

    Third question: Once I copy the Template tab to a new tab and rename it, can I program the Summary Tab to automatically fill in the new data from New tab, row 6, starting with column b to the next available row in Summary tab, also starting in column b?
    Macro to Hide Row Once Date is in Cell, for Excel Forum.xlsx

    Thank you.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Macro to Hide Row Once Date is Entered Into a Cell

    1) This code in the Summary for Invoicing sheet module will hide rows when you add a date to column A.
    Please Login or Register  to view this content.
    2) This code in each of the subsequent sheets module will hide a tab when you enter a Y in column S. At the moment it will hide the sheet if a Y is placed anywhere past row 5 in the sheet, but could be restricted to just one cell if that would work better for you.
    Please Login or Register  to view this content.
    3) I've added an icon to the Summary for Invoicing sheet that when clicked will open a simple UserForm. This form will ask for some limited details on new candidates and when you fill them out it will make a copy of the template sheet, name it appropriately and add the details you entered on the form to the relevant fields before setting up formulas on the Summary sheet to link a new row to the new candidate's sheet.
    Code for that form is below.
    Please Login or Register  to view this content.
    See attached for it all working.
    Hopefully it gets you somewhere near the desired results, but let me know if you need anything changing in it.

    BSB

  3. #3
    Registered User
    Join Date
    12-15-2023
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    8

    Re: Macro to Hide Row Once Date is Entered Into a Cell

    Thank you so much for these solutions! I love how you even went above and beyond creating that form for me. It is perfect! The only problem was the tab did not hide once I entered the Y in column S.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Macro to Hide Row Once Date is Entered Into a Cell

    The original code I provided would only hide the sheet if a capital Y was entered in column S. If you'd endered a lower case y, or Y with a trailing space it wouldn't work.

    Attached version with a slight amendment to take care of both of those scenarios.

    Please Login or Register  to view this content.
    Hopefully that works for you now.

    BSB

  5. #5
    Registered User
    Join Date
    12-15-2023
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    8

    Re: Macro to Hide Row Once Date is Entered Into a Cell

    It did work! Thank you so much! You are a wizard. Lol!!

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Macro to Hide Row Once Date is Entered Into a Cell

    Very glad I could help.

    BSB

+ 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. Insert Picture in cell and hide until date is entered into that cell(any date)
    By buckshot in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-25-2017, 05:05 PM
  2. How to Hide Info Once it is Entered in a cell
    By agroeneveld in forum Excel General
    Replies: 1
    Last Post: 10-05-2016, 01:25 PM
  3. Macro to date stamp cell below when text entered then password lock both cells
    By JohnDoh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-03-2015, 10:20 AM
  4. Hide a row as soon as any date entered
    By 0123456789 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2014, 06:02 AM
  5. Macro: For Having Current date entered cell in all sheets
    By bamaisgreat in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2014, 05:16 PM
  6. How to hide a '0' showing in a cell if no data entered
    By divingscubaboy in forum Excel General
    Replies: 5
    Last Post: 10-06-2010, 10:54 AM
  7. [SOLVED] Rows to drop off (hide) when a value is entered into a cell
    By jbeck068 in forum Excel General
    Replies: 4
    Last Post: 06-21-2006, 08:50 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