+ Reply to Thread
Results 1 to 10 of 10

Need to insert date and user when Event macro happend

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    79

    Need to insert date and user when Event macro happend

    I have this code that is working perfectly. When any row in column 14 becomes "Closed" The entire row is cut and pasted into the "Closed" worksheet. What I am trying to figure out is how to make the date and user get inserted in column 15 and the corresponding row to the "Closed" event. Any help would be greatly appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Need to insert date and user when Event macro happend

    Hi onbeillp111,

    I'm fairly new myself. But I can help on one of your problems. I currently have a user enter "y" if something is completed. and then once a y is entered, it adds a time stamp to the column next to it:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Need to insert date and user when Event macro happend

    Also,

    I am using a macro to move rows from one sheet to another. This is kinda similar as in it looks for a "y" in column 7.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-10-2013
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Need to insert date and user when Event macro happend

    The first code works like I need it too but I need to incorporate it into original code and when I tried it did not work. The date and time comes up but the row no longer transfers to the other sheet. I am also new to this and i tried to combine the two codes and came up with this.

    Now when I select Close in column N, the date comes in the next column but the row is not transfered to the "Closed" sheet and deleted from the main sheet.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Need to insert date and user when Event macro happend

    Hmm, maybe I was the wrong person to help, but I always find it more user friendly to have a button to move the rows to a different sheet. That way it reduces the amount of user input errors, and the user can determine when the rows are ready to be transferred.

    Sorry! I tried.
    here are the links where I received my help- maybe one of them can help you:
    http://www.excelforum.com/excel-prog...82#post3258582

    http://www.excelforum.com/excel-prog...47#post3261747

  6. #6
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Need to insert date and user when Event macro happend

    Perhaps try separating your if statements? just a guess.

  7. #7
    Registered User
    Join Date
    06-10-2013
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Need to insert date and user when Event macro happend

    I appreciate your help. I used your first code and it works just like I need it too I just need to figure out how to combine the code that I have now and you date insertion code.

  8. #8
    Registered User
    Join Date
    06-10-2013
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Need to insert date and user when Event macro happend

    I combined them, THANKS

  9. #9
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Need to insert date and user when Event macro happend

    Great! post your solution incase there are others who will benefit from it!

  10. #10
    Registered User
    Join Date
    06-10-2013
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Need to insert date and user when Event macro happend

    Combining the two codes gave me this. When Column N goes Closed, the date is inserted in column O and the row is cut and pasted into the "Closed" worksheet.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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