Results 1 to 14 of 14

VBA code if value is typed or pasted in a cell then current date is returned

Threaded View

  1. #1
    Registered User
    Join Date
    05-17-2020
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    35

    VBA code if value is typed or pasted in a cell then current date is returned

    Hi!

    I have a sheet that is automatically populated from another sheet that is triggered by the user. I need the corresponding cell in column E to give the current date if a cell in Column A (starting from A4) is not empty (if a value has been typed or entered). In the same manner, column F should give the "tab name".

    Example:
    Tab name is "Terminated"
    Column A is Employee Id
    Column E is date of termination
    Column F is Employee Status (need to have this column for other reports)

    I have a macro button to automatically move employees from the "Active" tab to the "Terminated" tab. Once moved (I assume this is being copy-pasted but in case macro fails or user wants to type manually, I need it to work either way) I need column E to have the termination date and column F the employee status (which can be copied from Tab name or can also be specified in the code -- whatever works easiest)

    I mentioned "typed or entered" because I have read from other sites that sometimes the macro does not run if value is pasted.

    Thank you in advance!
    Last edited by Roux11; 05-25-2020 at 04:46 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Format date returned by sheet code
    By fpt264 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2019, 05:34 AM
  2. Run macro when data based on cell value that is pasted and not typed in
    By originalJ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-02-2016, 01:56 PM
  3. Code to update cell with current date & time when other cells are modified
    By gjtbackwards in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-12-2014, 07:54 PM
  4. Can Macros be set to automatically run when something is pasted or typed into a cell?
    By Lylestyle89 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2013, 09:06 PM
  5. Code to insert current date (but NOT current time)
    By mjwillyone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2013, 09:37 AM
  6. [SOLVED] VBA code for cell date is less than current date + 2months
    By craigten in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-07-2013, 09:21 AM
  7. [SOLVED] How do I code a cell to display the current date on double-click?
    By George in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2005, 01:06 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