+ Reply to Thread
Results 1 to 5 of 5

Auto Fill Cell Value added by "Copy N Paste"

Hybrid View

  1. #1
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Auto Fill Cell Value added by "Copy N Paste"

    Private Sub Worksheet_Change(ByVal Target As Range)
        Dim r       As Range
        Dim cell    As Range
    
        Set r = Intersect(Target, _
                          Range("I:I,L:L,O:O"), _
                          Rows(9).Resize(Rows.Count - 8))
        If r Is Nothing Then Exit Sub
    
        Application.EnableEvents = False
        For Each cell In r
            With cell
                .Offset(, 1).Value = Environ("username")
                .Offset(, 2).Value = Now
            End With
        Next cell
        Application.EnableEvents = True
    End Sub
    Last edited by shg; 05-01-2009 at 03:05 PM. Reason: tweak
    Entia non sunt multiplicanda sine necessitate

  2. #2
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Smile Re: Auto Fill Cell Value added by "Copy N Paste"

    What can I say, Works Perfectly!

+ 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