![]() |
|
|
|
#1
|
|||
|
|||
|
First of all, there is no definitive way to make anything to do with a Word document truly, fully, secure. Someone who really knows Word can find a way to get past just about anything.
That being said, yes checking the editing time is a good clue. However, "editing time" ONLY means the accumulated time in a single session the document is open. If you open a Word document and do nothing, just wait an hour, the "editing time" is increased by one hour. So if someone knew that, they could cheat your check of time by simply leaving the document open for an hour. And, as macropod pointed out, the new person would likely do a SaveAs, which resets it. You could grab some data on who and when the document is opened and store them in document variables. Again, if someone really knows Word they could fudge this. However, document variables are NOT visible to normal Word use, unless you look for them. You could put the following in the Document_Open event (in the ThisDocument module). Code:
Private Sub Document_Open()
Dim strUser As String
Dim aVar
Dim num As Long
strUser = Environ("username")
For Each aVar In ActiveDocument.Variables
If aVar.Name = strUser Then num = aVar.Index
Next aVar
If num = 0 Then
ActiveDocument.Variables.Add Name:=strUser, Value:=Now
Else
ActiveDocument.Variables(num).Value = Now
End If
End Sub
To read who and when opened the document: Code:
Sub GetAllVariables()
Dim aVar
Dim strListVars As String
For Each aVar In ActiveDocument.Variables
strListVars = strListVars & _
aVar.Name & vbTab & aVar.Value & vbCrLf
Next
MsgBox strListVars
End Sub
AGAIN, though, it is a very very simple thing to open up the VBA editor, see the above code and...delete it. Boom. then delete any existing variables. Boom. Gone. Can you "sort of" catch cheaters? Maybe. Can you catch a cheater who knows Word? Probably not. |
|
#2
|
||||
|
||||
|
Quote:
Gerry's approach will also be defeated if the cheater simply opens a copy of the accomplice's document to copy content from, pastes it into their own document, then deletes the accomplice's copy after closing (which is quite likely).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mail Merge a letter to headmasters with rows of data/students assoc. w/school | sgaeta | Mail Merge | 7 | 04-10-2014 06:34 AM |
How to check if two documents have the same base? (i.e. if students were cheating)
|
marcin | Word | 2 | 03-30-2012 04:59 AM |
Re-installation of MS Office for Home and students
|
Roshan Hanief | Word | 2 | 06-09-2011 09:40 AM |
| Office 2010 for £38.95 for students with Tech Guarantee | Kez123 | Office | 0 | 03-11-2010 04:08 AM |