+ Reply to Thread
Results 1 to 6 of 6

Last editted User Name

Hybrid View

Liju144 Last editted User Name 01-15-2014, 05:58 AM
:) Sixthsense :) Re: Last editted User Name 01-18-2014, 06:41 AM
HaHoBe Re: Last editted User Name 01-18-2014, 08:15 AM
Liju144 Re: Last editted User Name 01-20-2014, 05:56 AM
:) Sixthsense :) Re: Last editted User Name 01-20-2014, 05:59 AM
HaHoBe Re: Last editted User Name 01-20-2014, 03:26 PM
  1. #1
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Last editted User Name

    Private Sub Worksheet_Change(ByVal Target As Range)
    
    If Target.Column = 1 Then
        Target.Offset(, 1).Value = Application.UserName
    End If
    
    End Sub


    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

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Last editted User Name

    Hi, Liju ,

    maybe use
    Private Sub Worksheet_Change(ByVal Target As Range)
    
    Dim rngCell As Range
    
    If Not Intersect(Target, Range("A:A")) Is Nothing Then
      Application.EnableEvents = False
      For Each rngCell In Target
        Cells(rngCell.Row, Columns.Count).End(xlToLeft).Offset(0, 1).Value = Environ$("USERNAME")
      Next rngCell
      Application.EnableEvents = True
    End If
    
    End Sub
    Even users who do not know very much about Office may change the Application.Username at their will...

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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] Grouped Data Blocks editted to Columns of Data based off left cell value?
    By BlazzedTroll in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 06-10-2013, 03:06 PM
  2. Insert user's name into cell based on windows user login when a button is clicked.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-16-2011, 01:08 PM
  3. Match new password to specific user and update list via custom user form
    By Sargekd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2011, 09:40 AM
  4. Pause macro for user input then search for user's answer across multiple sheets
    By sassy2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-04-2009, 03:55 AM
  5. [SOLVED] How do I hide macros in Excel so they can't be editted?
    By Donald McAllister in forum Excel General
    Replies: 1
    Last Post: 08-02-2006, 05:10 PM

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