> "Manuel" <Manuel@discussions.microsoft.com> wrote...
> >I have a workbook with two worksheets. the first sheet is a test, with
[quoted text clipped - 17 lines]
> attachment. Then you could use a macro in a separate workbook to collect
> data from the individual exam workbooks you detach from these e-mails.
"Manuel" <Manuel@discussions.microsoft.com> wrote...
...
>Question: in a shared invroment would user number 2's file be updated if
>user 1 saved his file?
Logically, if they can all SAVE their name, date and score in the same file,
they can all save their exam answers in the same file. If you can see all
the results for all exam takers, they can see any exam answers saved by
other exam takers.
You can't have each exam taker get a blank exam when s/he opens the exam
workbook AND have all exam takers' results stored in that same workbook
unless the exam takers use the exam workbook at different times. If they all
need to take the exam at the SAME time, then you can't store all their
results in the exam workbook.
You could use TWO workbooks. The exam workbook would be available to the
exam takers as a READ-ONLY file, and each of them would open a SEPARATE COPY
of the exam workbook. Upon completion, the macro would open a SHARED COMMON
workbook, and enter the exam taker's name, date and score, save the shared
workbook, close it and close the exam workbook.
>This was my original problem:
>because my macro creates a new line to record the informaion on, both
>users cannot save the file without one overwriting the other.
Another, MUCH SIMPLER alternative would be storing results in a text file.
That'd only require a macro statement like
Shell Environ("COMSPEC") & " /c echo " & ResultString & ">>" & ResultFile
where you'd generate ResultString in your macro, containing the exam taker's
name, date of taking the exam, and score, and ResultFile would be the full
pathname to the text file in which you'd store the results.
Manuel - 30 Jul 2007 05:12 GMT
Two work books is a great idea. One for the test and one for the log.
Thank you for your time.

Signature
Manuel
> "Manuel" <Manuel@discussions.microsoft.com> wrote...
> ....
[quoted text clipped - 30 lines]
> name, date of taking the exam, and score, and ResultFile would be the full
> pathname to the text file in which you'd store the results.