Re: Easy way to convert templates to documents?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Title: Re: Easy way to convert templates to documents?
Not to be a party-pooper or anything but in case all you want to retain from the template is the text and styles this will work fine. However if the Template contains Customized Toolbars/Keyboard, Macros, or AutoText then the document will expect to have the template available to pull these from. If you want to distribute the docs without the templates then don’t expect the Customizations/Macros/Autotext originally in the template to work.

To get around that, you’d have to use the Organizer (through VB even) to copy those items over as well. However, it has been noted that our customers would like an easier way to save templates as documents.
 

Matt
MacWord Testing
MacBU - Microsoft


On 4/11/05 12:02 PM, in article BE8017EB.1190%pbako@xxxxxxxxxx, "Peter Bako" <pbako@xxxxxxxxxx> wrote:

Well took a bit of tweaking but here is what I came up with.  These changes work on both Word 2004 and V.x versions.  It required the changing of the Visual Basic lines in the ChangeToDoc routine to this:

    tell application "Microsoft Word"
        do Visual Basic "Documents.Add Template:= \"" & dotFilePath & "\""
        do Visual Basic "activeDocument.SaveAS Filename:=\"" & folderPath & docName & "\""
        do Visual Basic "activeDocument.close"
    end tell

This way it all works!  Thanks for all the help!!!

Peter


On 4/10/05 11:11 PM, in article BE7F6331.92A76%berkowit@xxxxxxxxxxxxxxxx, "Paul Berkowitz" <berkowit@xxxxxxxxxxxxxxxx> wrote:

Nothing. I wrote it and ran it in 2004. There is an alternative 'save' variety that would work only in 2004, but I didn't use it. There might be a good reason to include the save and close lines in do Visual basic as well if you're expecting to use this in Word X. (Did you ever say so?)

As to why you're getting that error? There's probably some error I didn't anticipate which is preventing a new Document being created. (Or did you find one there - Document 2 or similar which looked like the template.) The error I was trying to avoid was just one I hit myself - which made the document but threw an error due to "not enough memory to display pictures". If you remove the 'try' and 'end try' lines, you should discover what the error in fact really is (you'll see it pop up in Word). Let me know what it says, and we'll see if we can work around it or fix it.











--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this e-mail address. It is for
newsgroup purposes only.

          Find out everything about Microsoft Mac Newsgroups at:
   http://www.microsoft.com/mac/community/community.aspx?pid=newsgroups
               Check out product updates and news & info at:
                       http://www.microsoft.com/mac




Relevant Pages

  • Re: Database log file deleted
    ... >Microsoft PSS ... >> confers no rights. ...
    (microsoft.public.exchange2000.information.store)
  • Re: Scripting mailbox creation
    ... >>confers no rights. ... >If the accounts aren't created then CSVDE is an option ...
    (microsoft.public.exchange.admin)
  • Re: corrupted e-mails
    ... Or you just keep the left shift key pressed while deleting;-) ... > and confers no rights. ... > This alias is for newsgroup purposes only ...
    (microsoft.public.exchange2000.misc)
  • Re: What is store.fcl?
    ... It is a file used to write call trace logging if it is ever turned on, ... Please do not send email directly to this alias is for newsgroup purposes ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.exchange.admin)
  • Re: Is it really that tough out there ? FIRED !
    ... The Bill of Rights explicitly protects all rights NOT specified in it. ... If I am an organizer, ... My union position would only be altered if you ... And the non-union employees have the right to reject your organization, ...
    (sci.electronics.repair)