hi,
>>> My question is what is
>>> the best way to prevent the user from changing the original document?
[quoted text clipped - 5 lines]
> application then I also want to close the external application and prompt the
> user to save the document..
The problem here is how to detect if the user has finished editing, but
here is an Excel example:
Public Sub EditExcelFile(AOriginal As String, AEdit As String)
' AOriginal is the original Excel document including its path.
' AEdit is a temporary Name including an path
' where the user has write access.
' Error handling is missing.
Dim objExcel As Excel.Application
Name AOriginal As AEdit
Set objExcel = New Excel.Application
objExcel.Visible = True
objExcel.Workbooks.Open AEdit
End Sub
mfG
--> stefan <--
rdmacaulay - 27 Feb 2006 16:49 GMT
>hi,
>
[quoted text clipped - 25 lines]
>mfG
>--> stefan <--
Stefan,
Thanks, your code works but not quite as I expected - maybe I'm doing
something wrong but the original document is being deleted as the new doc is
created. Here's what I am trying to do: an exisiting document will be used
as a template to open a new document which the user can modify, name and save
to any location desired.