+ Reply to Thread
Results 1 to 3 of 3

Log and Date Stamp Activity????

  1. #1
    Registered User
    Join Date
    02-10-2005
    Posts
    5

    Red face Log and Date Stamp Activity????

    I haver a shared workbook that needs to be updated by users once a week. What I want to do is track users Last Viewed, Last Saved. So, how do you get the user name and time stamp the activity? There are 18 users and the workbook is on a windows 2000 network.

    Many Thanks

    Paules3

  2. #2
    Registered User
    Join Date
    08-13-2004
    Posts
    46
    Put this in "thisworkbook" in microsft excel objects

    it will put date and time in A1 and a user name in A2

    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)

    Sheets("sheet1").Range("A1").FormulaR1C1 = "=now()"
    Sheets("sheet1").Range("A2") = Application.UserName
    Range("a1:a2").Select
    Selection.Copy
    Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
    False, Transpose:=False
    Application.CutCopyMode = False
    ActiveCell.Offset(0, 1).Range("A1").Select

    End Sub

  3. #3
    Registered User
    Join Date
    02-10-2005
    Posts
    5
    Thanks I will try it out, but it looks like it writes over the last entry for user & time, when what I need is to over write time date based on the user name. i.e. if user name = paulea3 then a3 = time stamp else if user name = peter then a4 = time stamp etc.

    Cheers

    Paulea3

+ 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