Re: Easy way to convert templates to documents?
- From: "Matt Centurión [MSFT]" <matt@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Apr 2005 00:12:10 -0700
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
- Follow-Ups:
- Re: Easy way to convert templates to documents?
- From: John McGhie [MVP - Word and Word Macintosh]
- Re: Easy way to convert templates to documents?
- References:
- Easy way to convert templates to documents?
- From: Peter Bako
- Re: Easy way to convert templates to documents?
- From: CyberTaz
- Re: Easy way to convert templates to documents?
- From: Paul Berkowitz
- Re: Easy way to convert templates to documents?
- From: Peter Bako
- Re: Easy way to convert templates to documents?
- From: Paul Berkowitz
- Re: Easy way to convert templates to documents?
- From: Paul Berkowitz
- Re: Easy way to convert templates to documents?
- From: Peter Bako
- Re: Easy way to convert templates to documents?
- From: Paul Berkowitz
- Re: Easy way to convert templates to documents?
- From: Peter Bako
- Easy way to convert templates to documents?
- Prev by Date: Re: Problem using Thumbnails in Navigation Panel
- Next by Date: Re: Cut Paste Crashes
- Previous by thread: Re: Easy way to convert templates to documents?
- Next by thread: Re: Easy way to convert templates to documents?
- Index(es):
Relevant Pages
|