Re: Retrieve workgroup templates path

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Nick Cranham (TungCheeWah_at_Invalid.com)
Date: 03/05/04


Date: Fri, 5 Mar 2004 13:13:55 +0800

Bigfoot,
A Word macro says:
Options.DefaultFilePath(Path:=wdWorkgroupTemplatesPath) = YourPathToFolder.

Or you write to the Registry, courtesy of Jim Rech:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\General\SharedTempla
tes

This is the same value as the Excel "Application.NetworkTemplatesPath".

NickHK

"Bigfoot" <pit.nospam@nlr.nl> wrote in message
news:c26v8m$8qmh$1@simian.nlr.nl...
> Hi,
>
> I have a visual basic project where I want update the local MS Word
> templates with the ones on the server, but how do I retrieve the
"workgroup
> templates path" from MS Word. I do not want hard code the path in my
> project.
>
> Thanx,
>
> Bigfoot
>
>



Relevant Pages

  • Re: Userform causes Excel to crash
    ... Earlier you mentioned you need access to Visual Basic Project, ... Excel does not crash if I include the following code in front of the above ... "shah shailesh" wrote: ...
    (microsoft.public.excel.programming)
  • "Trust Access to Visual Basic Project" checked but getting error 6
    ... "Programmatic access to Visual Basic Project is not trusted" ... Now that I have it checked (and the minimum macro security enabled), ... and it is making use of Excel 2003. ...
    (microsoft.public.excel.programming)
  • programmatic access to visual basic project is not trusted
    ... I've got some VB code that uses OLE automation to do some stuff in Excel. ... I've started getting the error "programmatic access to visual basic project ... Because of some other problems (A Microsoft security update breaking ...
    (microsoft.public.excel.programming)
  • Re: Programmatic access to Visual Basic project is not trusted. message
    ... Are you sure you're using Excel 2000? ... "Programmatic access to Visual Basic project is not trusted" is an error ...
    (microsoft.public.excel.programming)
  • Retrieve workgroup templates path
    ... I have a visual basic project where I want update the local MS Word ... templates with the ones on the server, but how do I retrieve the "workgroup ... templates path" from MS Word. ...
    (microsoft.public.vb.general.discussion)