Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    May 2002
    Location
    Smithfield, Free State, South Africa
    Posts
    210
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Set WorkGroupTemplates path (Word 2000/3)

    Scenario: We have numerous users who are borderline computer literate.
    We have numerous Word template - memo, fax, submission and other documents with have toolbars attacahed and macros to run various automated features.
    The templates have been saved to an all-user-access server, where they can access the templates/documents from Windows explorer. Despite training, users still access the 'templates' from File>Open in Word and then cannot save as a document.

    How do I use vba to check if the users WorkGroupTemplates path has been set and if not, to set it to C:Workgroup.
    Then I must save the active template to that folder. Code?
    Also the toolbar does not stay with the template when saved to another location. How do I make sure that the toolbar stays with?

    Maybe there is a better way to do this as I am really battling due to my limited vba knowledge. <img src=/S/confused3.gif border=0 alt=confused3 width=45 height=45>

    Much appreciated all the help so far!

  2. #2
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Quakertown, PA, Pennsylvania, USA
    Posts
    517
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Set WorkGroupTemplates path (Word 2000/3)

    Hi, Lynden. A little bit of information for you...

    1. The very best way to ever create menus in Word is to build them in VBA in the Document_Open (templates and documents) and Document_New (templates) events. You'll find a sample here: http://www.vbaexpress.com/kb/getarticle.php?kb_id=14

    2. Have you considered creating shortcuts to the templates in a folder on their desktop and ask them to access them that way? Default double-click action of a template is NEW, not open.

    3. I do believe you could remove the open action of templates via Windows Explorer: Tools-Folder options, File types tab. Find DOT files, go to Advanced, and remove the OPEN option? Better test that....

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Set WorkGroupTemplates path (Word 2000/3)

    I think the strategies discussed in your other thread are more user-friendly. However, to answer your questions:

    > How do I use vba to check if the users WorkGroupTemplates path has been set and if not, to set it to C:Workgroup.

    You actually should point it to your folder on the server. Why not??

    You can check and assign the Workgroup Templates Path using this code:
    <pre>If StrComp(Options.DefaultFilePath(wdWorkgroupTemplat esPath), _
    "ServerShareFolder", vbTextCompare) <> 0 Then
    Options.DefaultFilePath(wdWorkgroupTemplatesPath) = _
    "ServerShareFolder"
    End If
    </pre>

    On the other hand, why bother checking? Maybe just assign it.

    >Then I must save the active template to that folder. Code?

    I suggest not doing this as you will lose the benefit of central updating.

    > Also the toolbar does not stay with the template when saved to another location.
    > How do I make sure that the toolbar stays with?

    Well... it sure should. Not sure what's going wrong here.

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Set WorkGroupTemplates path (Word 2000/3)

    <hr>Also the toolbar does not stay with the template when saved to another location. How do I make sure that the toolbar stays with?<hr>
    Make sure that you haven't saved the toolbar & it's associated macros, if any, to normal.dot. That is Word's default.

  5. #5
    3 Star Lounger
    Join Date
    May 2002
    Location
    Smithfield, Free State, South Africa
    Posts
    210
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Set WorkGroupTemplates path (Word 2000/3)

    Thanks for all the valuable input.
    Will spend time experimenting with suggestions.
    Chat to you again.
    Later

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •