+ Reply to Thread
Results 1 to 4 of 4

Recording Username & Date when a Cell is Modified - Applying an IF Statement in the Macro

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

    Recording Username & Date when a Cell is Modified - Applying an IF Statement in the Macro

    Hi,

    Introduction:
    I am working on creating a simple Excel Spreadsheet for an Engineering Tool Room Inventory for work. One of the features of the Excel Spreadsheet is that when a user changes information in one cell (Using a drop down list - Data Validation) the corresponding cells will record the date the cell was modified along with the name of the user who did those changes. Currently I am using some VBA code to make this feature work.

    Issue:
    The VBA code works fine and functions but what I would like to do is only have the date and username recorded when a word is selected from the drop down list in the cell.
    If any other word has been selected in the cell, then I would not like to have the date or username recorded.

    So to explain what I am trying to do, I have tried to explain it as a step-by-step process:
    1. User clicks on the cell and picks an option from a list. (The list is generated using Data Validation)
    2. If the user selects 'Outstanding', then the cell will go RED (Condition Formatting), and the corresponding cells WILL NOT record the date and the username.
    3. If the user selects 'Solved', then the cell will go GREEN, and the corresponding cells WILL record the date and the username.

    Current Solution:
    Currently whats happens:
    1. User clicks on the cell and picks an option from a list. (This list is generated using Data Validation)
    2. Any changes made to the cell, the corresponding cells will record the date the cell was changed along with the name of user.

    Currently to do the above steps, I have utilised the following Excel VBA Code:

    Please Login or Register  to view this content.
    I have tried to modify the VBA code but seem to fail.
    I know it is just one or two lines but I have not had any luck.
    So does anyone else know what I am missing or could guide me in the correct direction?

    Other:
    Currently to do the above function, I have utilised the following Excel VBA Code:
    Example - Record Username & Date.xlsm

    Thank you in advance.
    Sinalk

  2. #2
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Recording Username & Date when a Cell is Modified - Applying an IF Statement in the Ma

    On the basis what i understood, if Outstanding is selected, you don't want it to be recorded... and if Solved is selected then it should record.

    Please Login or Register  to view this content.

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

    Re: Recording Username & Date when a Cell is Modified - Applying an IF Statement in the Ma

    Hi Naveenmarapaka,

    That is exactly what I require.
    Thank you! Appreciate it!

    Regards,

  4. #4
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Recording Username & Date when a Cell is Modified - Applying an IF Statement in the Ma

    Glad it helped

+ 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. Recording File Name, Last Modified Date AND Last Saved By properties within directory
    By compton12345 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2013, 02:16 PM
  2. Replies: 0
    Last Post: 01-29-2013, 04:59 PM
  3. Retrieve File names from a folder with last modified username
    By elavarasans in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-10-2013, 12:48 PM
  4. Trouble Running IF Statement while recording Macro
    By MacroNovice in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-16-2011, 03:40 PM
  5. replace cell content with username when modified
    By b0bbytee in forum Excel General
    Replies: 2
    Last Post: 11-10-2008, 03:06 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