+ Reply to Thread
Results 1 to 8 of 8

If cell not empty, display today's date in adjoining cell

  1. #1
    Registered User
    Join Date
    07-18-2019
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    41

    If cell not empty, display today's date in adjoining cell

    So, this was solved in another post, but I can't locate it to make a reply.

    The code below solved the issue.

    I created a macro with this, and the date does not insert. I have several sheets in the workbook; Do I need to specify the specific sheet?

    This is what I need:
    Sheet name = Actions
    If Column D is not empty, display today's date in Column E.

    Thanks!
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,851

    Re: If cell not empty, display today's date in adjoining cell

    You have posted a worksheet change event. This is particular to an individual sheet. If you have more than one sheet that needs to be appended, then this code will need to be in each sheet. In order for this code you need to have something change manually in Column D, otherwise as the code indicates it exits the code.
    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

  3. #3
    Registered User
    Join Date
    07-18-2019
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    41

    Re: If cell not empty, display today's date in adjoining cell

    Several sheets, but I only want the macro to act on one sheet: Sheet#1 "Actions"
    Does this need to be indicated in the code?

    And yes, I understand a manual action needs to occur in Column D, that's how I am testing.

    Should I create and paste this into a macro? Or should I do this in the VB editor? Does it matter?

    Thanks.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,851

    Re: If cell not empty, display today's date in adjoining cell

    Put it in the worksheet events for the particular worksheet. Open VBE, click on the particular sheet in the left window. Paste the code into the right window. Close and Save.

  5. #5
    Registered User
    Join Date
    07-18-2019
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    41
    Quote Originally Posted by alansidman View Post
    Put it in the worksheet events for the particular worksheet. Open VBE, click on the particular sheet in the left window. Paste the code into the right window. Close and Save.
    Success! Thank you.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,288

    Re: If cell not empty, display today's date in adjoining cell

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    07-18-2019
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    41

    Re: If cell not empty, display today's date in adjoining cell

    Please disregard.
    Last edited by jmueller0823; 07-22-2019 at 12:28 PM.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,288

    Re: If cell not empty, display today's date in adjoining cell

    The thread is marked as solved - I suggest you change that if you want to attract further help.

+ 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] Inserting today's date if cell is empty
    By financeVP in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-01-2019, 12:10 PM
  2. [SOLVED] Add today's Date in next empty cell
    By majime01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2018, 04:29 PM
  3. If certain cell is empty, then subtract another cell value from Today's date
    By fatal.lordes in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-06-2018, 10:18 PM
  4. Looking to display data in a cell, only if today's date is 7 days past a cell's date
    By mbenderpetassure in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2015, 01:57 PM
  5. [SOLVED] Can I make a cell display something if any date in a row is before today?
    By Deathwing in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-10-2014, 04:46 PM
  6. condit. format: If date in cell = today, display "Today"
    By ratkins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2013, 01:33 PM
  7. How do I display contents of an adjoining cell?
    By Sue Smith in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2005, 01:05 AM

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