P
PC
We have a macro that creates a new document based on a template, using the
following code:
Set doc = Documents.Add(Template:="k:\templates\Preprintedletterhead.dot")
The template is set up so that the first page is selected from tray 3
(loaded with letterhead), and subsequent pages are selected from tray 2
(plain paper).
New documents created by "Authenticated Users" using this macro do not have
the correct page setup - they are set as "automatically select".
Authenticated users have the following permissions on the templates folder:
Read & Execute, List Folder Contents, Read, Write. (Permissions are set so
that users cannot over-write the templates.)
New documents created by the macro, by users with full permissions on the
folder, DO have the proper page setup.
I have added the following code to try to set the page after the document is
created but this does not have any effect:
With doc.PageSetup
.FirstPageTray = wdPrinterLargeCapacityBin
.OtherPagesTray = wdPrinterLowerBin
End With
Does anyone know how to work around this problem, which appears to be
related to permissions on the folder?
following code:
Set doc = Documents.Add(Template:="k:\templates\Preprintedletterhead.dot")
The template is set up so that the first page is selected from tray 3
(loaded with letterhead), and subsequent pages are selected from tray 2
(plain paper).
New documents created by "Authenticated Users" using this macro do not have
the correct page setup - they are set as "automatically select".
Authenticated users have the following permissions on the templates folder:
Read & Execute, List Folder Contents, Read, Write. (Permissions are set so
that users cannot over-write the templates.)
New documents created by the macro, by users with full permissions on the
folder, DO have the proper page setup.
I have added the following code to try to set the page after the document is
created but this does not have any effect:
With doc.PageSetup
.FirstPageTray = wdPrinterLargeCapacityBin
.OtherPagesTray = wdPrinterLowerBin
End With
Does anyone know how to work around this problem, which appears to be
related to permissions on the folder?