+ Reply to Thread
Results 1 to 6 of 6

Insert username in cell if row edited

  1. #1
    Registered User
    Join Date
    06-26-2014
    Location
    Norway
    MS-Off Ver
    10
    Posts
    43

    Question Insert username in cell if row edited

    Hello,

    I have a spreadsheet with data in many rows from column A:G

    What I would like to do:
    Insert username in column H when user edits a value in cell A:G on the same row.

    Examples:
    User edits Cell D10.
    I then want the vba to get the username and paste this in Cell H10

    User edits Cell G20.
    I then want the vba to get the username and paste this in Cell H20

    Is this possible?

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Insert username in cell if row edited

    Yes, you'll need to do it on the Worksheet_Change event

    Please Login or Register  to view this content.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Insert username in cell if row edited

    Copy the below code and do right click on sheet tab and select view code and paste it.

    Close the VBA window (Alt+Q to close VBA window) and return to that sheet and check.

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    06-26-2014
    Location
    Norway
    MS-Off Ver
    10
    Posts
    43

    Re: Insert username in cell if row edited

    FANTASTIC!

    That worked like a charm!

    Is it maybe possible to add the current time and date in the cell next to it as well? That would be column I

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Insert username in cell if row edited

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    06-26-2014
    Location
    Norway
    MS-Off Ver
    10
    Posts
    43

    Re: Insert username in cell if row edited

    YOU Sir, are a true HERO!

    Thank you so very, very, very much for your fast reply.

+ 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] Insert date whenever cell is updated (not edited)
    By EdwardStephenson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2014, 11:15 AM
  2. [SOLVED] Macro to record the Username in the first cell of a row after that row has been edited.
    By bajdr47 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2013, 03:36 PM
  3. Insert automatic date and time stamp in a cell if any cell of the same row is edited
    By kdhanerawala in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-12-2012, 06:18 PM
  4. Auto insert of Username in a set cell
    By galvinpaddy in forum Excel General
    Replies: 4
    Last Post: 03-22-2012, 04:43 PM
  5. Log username edited cell macro codes
    By akou in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2009, 10:43 AM

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