Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Keep the track of persons how opened the sheet and made changes.

Hi,

I have a workbook and 6 of us have access to the workbook.

I want to write a code so that i can come to know how many people
opened the file and made the changes.

I need the following information on a separate sheet.

1. Lan Id (Name of the person who log's in.)
2. Date
3. Time
4. Changes made and saved (Yes/No)

I know very basic level of scripting it is too difficult for me.

Regards

Heera
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Keep the track of persons how opened the sheet and made changes.

Forgot to paste the code.

Option Explicit

Private Sub Workbook_Open()
'1. Lan Id (Name of the person who log's in.)
'2. Date
'3. Time
'4. Changes made and saved (Yes/No)
'Create a worksheet for the log.
'Set the worksheet codename to "LOG"
Dim lRow As Long

If Logsheet Is Nothing Then
MsgBox ("You have no worksheet with the codename logsheet in your
workbook")
Exit Sub
End If

lRow = Logsheet.Cells(Logsheet.Rows.Count, 1).End(xlUp).Row + 1

If lRow = 2 Then
With Logsheet
.Cells(1, 1).Value = "User Name"
.Cells(1, 2).Value = "Date"
.Cells(1, 3).Value = "Time"
.Cells(1, 4).Value = "Changes Made"
End With
End If

Logsheet.Cells(lRow, 1).Value = Environ("USERNAME")
With Logsheet.Cells(lRow, 2)
.Value = Date
.NumberFormat = "mm/dd/yyyy"
End With
With Logsheet.Cells(lRow, 3)
.Value = Time
.NumberFormat = "h:mm AM/PM"
End With

Logsheet.Cells(lRow, 4).Value = "Changes Made"

End Sub

--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"Heera" wrote:

Hi,

I have a workbook and 6 of us have access to the workbook.

I want to write a code so that i can come to know how many people
opened the file and made the changes.

I need the following information on a separate sheet.

1. Lan Id (Name of the person who log's in.)
2. Date
3. Time
4. Changes made and saved (Yes/No)

I know very basic level of scripting it is too difficult for me.

Regards

Heera

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Keep the track of persons how opened the sheet and made changes.

Here's the first part. Put this in the ThisWorkbook Module. You'll need to
create a new worksheet and make the worksheet codename LOGSHEET. From the
worksheet tab, right click to VIEW CODE.

Select the worksheet of interest
Change the name here to LOGSHEET.

Maybe someone else can help with the second part.
--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"Heera" wrote:

Hi,

I have a workbook and 6 of us have access to the workbook.

I want to write a code so that i can come to know how many people
opened the file and made the changes.

I need the following information on a separate sheet.

1. Lan Id (Name of the person who log's in.)
2. Date
3. Time
4. Changes made and saved (Yes/No)

I know very basic level of scripting it is too difficult for me.

Regards

Heera

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Keep the track of persons how opened the sheet and made changes.

Thank you.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't find file opened from email,changes made & saved newtothis Excel Discussion (Misc queries) 2 September 6th 08 09:44 PM
Track whose made changes Kiba Excel Programming 3 May 25th 07 03:32 PM
how to track changes made to a excel sheet using VisualBasic Daffo Excel Discussion (Misc queries) 10 August 31st 06 06:10 AM
How to keep track of opened sheet? Jack Excel Programming 1 June 2nd 05 03:44 AM
Can I track changes made to a shared file per userid. Julie _at_GBS Excel Discussion (Misc queries) 4 May 3rd 05 01:52 PM


All times are GMT +1. The time now is 08:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"