Any brilliant person out there who can make a "save as .dot" macro, that will
automatically retain the original file name and file location, and save it as
a .dot file? Bacground of why I would need such a thing is below. Thanks
in advance for any help or thoughts anyone can offer!

We use a lot of templates in Word. We are on Word 2003. Starting when we
moved to Word XP, I have encountered a problem where my .dot files do not
want to save correctly. In Word 97, if I opened my .dot file, it would open
as .dot, I could work on it, and it would save as .dot. No problem. Now,
for some reason, Word wants to save it as a .doc. Sometimes it warns me it
is doing this, sometimes not. :( Even better, sometimes it *appears* to be
a .dot, but it behaves like a .doc. Of course, several features of a
template don't work correctly if it's not saved in the correct .dot format
(for instance, the "createdate" field).

I tried changing my default file format to be .dot, but that was a pain
because then all my regular documents want to default to be saved in my
personal templates folder. I tried changing my templates location so it at
least pointed to the highest level of our shared templates, but that made it
so my personal autotext and personal toobars didn't work (since my Normal.dot
is saved in my templates directory. I can't save my Normal in the shared
drive, I don't think, since that would probably over-ride everyone's personal
Normal? I was afraid to try that.)

The only way around this seems to be to always do a "save as" and
specifically choose the .dot extension. Unfortunately, this automatically
takes me to my personal templates folder (instead of the shared templates
folder it originated from) so I have to re-navigate back to the correct
folder (we have multiple folders for our shared templates, so they are split
out onto separate tab in the Templates window) and then save. This is a
pain. It's far more than a pain when Word sneakily makes a .dot file into a
.doc and loses autotext and macros built into that file. (Yes, it should
warn me, but it doesn't always do so. Really, I swear. I know you don't
beleive me, but it's true. I have reported it to MS on their website, but to
date have not seen anything in the Knowledgebase addressing it.)

I'm sure this is some problem with our MS Word, but no one in my company's
Tech Support wamts spend any time on the phone with Microsoft for this, since
I'm the only one here who works on our templates. So, after struggling with
this for a year or so, thinking maybe I would get used to it, or maybe I was
crazy and it would finally stop doing it, I'm looking for other options.

Any thoughts would be greatly appreciated!

Re: Saving .dot files by Peter

Peter
Tue Dec 07 18:35:09 CST 2004

Instead of double-clicking on your templates when you want to edit them, =
right-click and choose "Open" instead of "New".

hth,

-Peter

"Dawn Rhoads" <Dawn Rhoads@discussions.microsoft.com> wrote in message =
news:4BF05B28-A60C-4D0F-82C5-5316B8FA1191@microsoft.com...
> Any brilliant person out there who can make a "save as .dot" macro, =
that will=20
> automatically retain the original file name and file location, and =
save it as=20
> a .dot file? Bacground of why I would need such a thing is below. =
Thanks=20
> in advance for any help or thoughts anyone can offer!
>=20
> We use a lot of templates in Word. We are on Word 2003. Starting =
when we=20
> moved to Word XP, I have encountered a problem where my .dot files do =
not=20
> want to save correctly. In Word 97, if I opened my .dot file, it =
would open=20
> as .dot, I could work on it, and it would save as .dot. No problem. =
Now,=20
> for some reason, Word wants to save it as a .doc. Sometimes it warns =
me it=20
> is doing this, sometimes not. :( Even better, sometimes it *appears* =
to be=20
> a .dot, but it behaves like a .doc. Of course, several features of a=20
> template don't work correctly if it's not saved in the correct .dot =
format=20
> (for instance, the "createdate" field).
>=20
> I tried changing my default file format to be .dot, but that was a =
pain=20
> because then all my regular documents want to default to be saved in =
my=20
> personal templates folder. I tried changing my templates location so =
it at=20
> least pointed to the highest level of our shared templates, but that =
made it=20
> so my personal autotext and personal toobars didn't work (since my =
Normal.dot=20
> is saved in my templates directory. I can't save my Normal in the =
shared=20
> drive, I don't think, since that would probably over-ride everyone's =
personal=20
> Normal? I was afraid to try that.)
>=20
> The only way around this seems to be to always do a "save as" and=20
> specifically choose the .dot extension. Unfortunately, this =
automatically=20
> takes me to my personal templates folder (instead of the shared =
templates=20
> folder it originated from) so I have to re-navigate back to the =
correct=20
> folder (we have multiple folders for our shared templates, so they are =
split=20
> out onto separate tab in the Templates window) and then save. This is =
a=20
> pain. It's far more than a pain when Word sneakily makes a .dot file =
into a=20
> .doc and loses autotext and macros built into that file. (Yes, it =
should=20
> warn me, but it doesn't always do so. Really, I swear. I know you =
don't=20
> beleive me, but it's true. I have reported it to MS on their website, =
but to=20
> date have not seen anything in the Knowledgebase addressing it.) =20
>=20
> I'm sure this is some problem with our MS Word, but no one in my =
company's=20
> Tech Support wamts spend any time on the phone with Microsoft for =
this, since=20
> I'm the only one here who works on our templates. So, after =
struggling with=20
> this for a year or so, thinking maybe I would get used to it, or maybe =
I was=20
> crazy and it would finally stop doing it, I'm looking for other =
options.
>=20
> Any thoughts would be greatly appreciated!

Re: Saving .dot files by Charles

Charles
Wed Dec 08 14:26:40 CST 2004

The way to use templates is not to _open_ them but to create a new document
based on the template. You open the template only when you want to make
changes that will be reflected in all future documents created from the
template. The only time you would open a template and use Save As with it is
when you want to create a new (different) template. For more on the
different kinds of templates, tabs on the file new dialog, and locations of
templates folders see http://addbalance.com/usersguide/templates.htm.

As for sharing, see http://addbalance.com/word/movetotemplate.htm for
step-by-step instructions on moving / sharing / copying / backing-up
customizations including AutoText, AutoCorrect, keyboard assignments,
toolbars, macros, etc.


--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.


"Dawn Rhoads" <Dawn Rhoads@discussions.microsoft.com> wrote in message
news:4BF05B28-A60C-4D0F-82C5-5316B8FA1191@microsoft.com...
> Any brilliant person out there who can make a "save as .dot" macro, that
> will
> automatically retain the original file name and file location, and save it
> as
> a .dot file? Bacground of why I would need such a thing is below.
> Thanks
> in advance for any help or thoughts anyone can offer!
>
> We use a lot of templates in Word. We are on Word 2003. Starting when we
> moved to Word XP, I have encountered a problem where my .dot files do not
> want to save correctly. In Word 97, if I opened my .dot file, it would
> open
> as .dot, I could work on it, and it would save as .dot. No problem. Now,
> for some reason, Word wants to save it as a .doc. Sometimes it warns me
> it
> is doing this, sometimes not. :( Even better, sometimes it *appears* to
> be
> a .dot, but it behaves like a .doc. Of course, several features of a
> template don't work correctly if it's not saved in the correct .dot format
> (for instance, the "createdate" field).
>
> I tried changing my default file format to be .dot, but that was a pain
> because then all my regular documents want to default to be saved in my
> personal templates folder. I tried changing my templates location so it
> at
> least pointed to the highest level of our shared templates, but that made
> it
> so my personal autotext and personal toobars didn't work (since my
> Normal.dot
> is saved in my templates directory. I can't save my Normal in the shared
> drive, I don't think, since that would probably over-ride everyone's
> personal
> Normal? I was afraid to try that.)
>
> The only way around this seems to be to always do a "save as" and
> specifically choose the .dot extension. Unfortunately, this automatically
> takes me to my personal templates folder (instead of the shared templates
> folder it originated from) so I have to re-navigate back to the correct
> folder (we have multiple folders for our shared templates, so they are
> split
> out onto separate tab in the Templates window) and then save. This is a
> pain. It's far more than a pain when Word sneakily makes a .dot file into
> a
> .doc and loses autotext and macros built into that file. (Yes, it should
> warn me, but it doesn't always do so. Really, I swear. I know you don't
> beleive me, but it's true. I have reported it to MS on their website, but
> to
> date have not seen anything in the Knowledgebase addressing it.)
>
> I'm sure this is some problem with our MS Word, but no one in my company's
> Tech Support wamts spend any time on the phone with Microsoft for this,
> since
> I'm the only one here who works on our templates. So, after struggling
> with
> this for a year or so, thinking maybe I would get used to it, or maybe I
> was
> crazy and it would finally stop doing it, I'm looking for other options.
>
> Any thoughts would be greatly appreciated!



Re: Saving .dot files by Dawn

Dawn
Thu Dec 09 15:41:02 CST 2004

Thanks for the replies, Charles and Peter, but we don't seem to be on the
same page regarding my problem.

1) I am trying to make changes to my underlying template, so I need to open
the template itself, not create a new document based on it.

2) I really am opening the template itself -- in Word I go to File/Open and
navigate to the folder where the templates are saved and open the template
itself. I know it is the template and not a "new" document, because the
title bar across the top shows the correct file name (such as "Basic
Letter.dot") not "Document1" as it would for a new document.

So... I'm pretty sure I'm opening things like I should. As I said, in years
past I never had this problem. I haven't changed how I'm working on these
Templates, Word has changed how it's reacting. For whatever reason, Word is
behaving strangely with respect to saving the files. I must be the only
person who is having this problem, which I agree is completely weird, but
that's what's happening.

Given all that, I'm hoping someone could devise a "save as..." macro that I
would
1) retain the name the file already has (Word is already doing this correctly)
2) make sure the file type is .dot (this is where Word screws up for me)
3) keep the file in the location it started in (when I choose a file type of
.dot Word automatically flips to my personal templates directory, so I have
to re-navigate back to the original location)

If anyone could do something like this, it would be a big help to me. I can
record a macro, but don't have enough skill to write one, especially one that
includes variables like this one would have to. Thanks for any time or
attention anyone could offer on this!

"Charles Kenyon" wrote:

> The way to use templates is not to _open_ them but to create a new document
> based on the template. You open the template only when you want to make
> changes that will be reflected in all future documents created from the
> template. The only time you would open a template and use Save As with it is
> when you want to create a new (different) template. For more on the
> different kinds of templates, tabs on the file new dialog, and locations of
> templates folders see http://addbalance.com/usersguide/templates.htm.
>
> As for sharing, see http://addbalance.com/word/movetotemplate.htm for
> step-by-step instructions on moving / sharing / copying / backing-up
> customizations including AutoText, AutoCorrect, keyboard assignments,
> toolbars, macros, etc.
>
>
> --
>
> Charles Kenyon
>
> Word New User FAQ & Web Directory: http://addbalance.com/word
>
> Intermediate User's Guide to Microsoft Word (supplemented version of
> Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
>
> See also the MVP FAQ: http://www.mvps.org/word which is awesome!
> --------- --------- --------- --------- --------- ---------
> This message is posted to a newsgroup. Please post replies
> and questions to the newsgroup so that others can learn
> from my ignorance and your wisdom.
>
>
> "Dawn Rhoads" <Dawn Rhoads@discussions.microsoft.com> wrote in message
> news:4BF05B28-A60C-4D0F-82C5-5316B8FA1191@microsoft.com...
> > Any brilliant person out there who can make a "save as .dot" macro, that
> > will
> > automatically retain the original file name and file location, and save it
> > as
> > a .dot file? Bacground of why I would need such a thing is below.
> > Thanks
> > in advance for any help or thoughts anyone can offer!
> >
> > We use a lot of templates in Word. We are on Word 2003. Starting when we
> > moved to Word XP, I have encountered a problem where my .dot files do not
> > want to save correctly. In Word 97, if I opened my .dot file, it would
> > open
> > as .dot, I could work on it, and it would save as .dot. No problem. Now,
> > for some reason, Word wants to save it as a .doc. Sometimes it warns me
> > it
> > is doing this, sometimes not. :( Even better, sometimes it *appears* to
> > be
> > a .dot, but it behaves like a .doc. Of course, several features of a
> > template don't work correctly if it's not saved in the correct .dot format
> > (for instance, the "createdate" field).
> >
> > I tried changing my default file format to be .dot, but that was a pain
> > because then all my regular documents want to default to be saved in my
> > personal templates folder. I tried changing my templates location so it
> > at
> > least pointed to the highest level of our shared templates, but that made
> > it
> > so my personal autotext and personal toobars didn't work (since my
> > Normal.dot
> > is saved in my templates directory. I can't save my Normal in the shared
> > drive, I don't think, since that would probably over-ride everyone's
> > personal
> > Normal? I was afraid to try that.)
> >
> > The only way around this seems to be to always do a "save as" and
> > specifically choose the .dot extension. Unfortunately, this automatically
> > takes me to my personal templates folder (instead of the shared templates
> > folder it originated from) so I have to re-navigate back to the correct
> > folder (we have multiple folders for our shared templates, so they are
> > split
> > out onto separate tab in the Templates window) and then save. This is a
> > pain. It's far more than a pain when Word sneakily makes a .dot file into
> > a
> > .doc and loses autotext and macros built into that file. (Yes, it should
> > warn me, but it doesn't always do so. Really, I swear. I know you don't
> > beleive me, but it's true. I have reported it to MS on their website, but
> > to
> > date have not seen anything in the Knowledgebase addressing it.)
> >
> > I'm sure this is some problem with our MS Word, but no one in my company's
> > Tech Support wamts spend any time on the phone with Microsoft for this,
> > since
> > I'm the only one here who works on our templates. So, after struggling
> > with
> > this for a year or so, thinking maybe I would get used to it, or maybe I
> > was
> > crazy and it would finally stop doing it, I'm looking for other options.
> >
> > Any thoughts would be greatly appreciated!
>
>
>

Re: Saving .dot files by Peter

Peter
Thu Dec 09 16:36:04 CST 2004

OK, sounds like you are following the correct procedure for opening a =
template for editing.
I think you're expecting it to behave correctly, and I can't tell you =
why it's not behaving as you'd expect it to behave.
It sounds like there is some flag in Tools -> Options that is toggled =
the wrong way, or some other setting that needs to be changed; perhaps =
someone else knows if this behavior is controlled by an option?

Seems like the real fix is to change the behavior of Word, probably by =
toggling a setting/flag, but if you can't get there, the following macro =
should give you a workaround:

Public Sub FileSave()
' test for a template two ways, in case Word is changing the document =
type when it opens.
' testing the type is the "right" way to do it, but checking the =
extension will work, too
If ActiveDocument.Type =3D wdTypeTemplate Or =
Right(ActiveDocument.Name, 4) =3D ".dot" Then
' this document is a template
' save the document to its current location as a template
Call ActiveDocument.SaveAs(ActiveDocument.FullName, =
wdFormatTemplate)
Else
' this document is not a template, so simply save it.
Call ActiveDocument.Save
End If
End Sub

To install the macro, open Normal.dot just like you'd open any other =
template (make sure no other Word documents are open at the time), press =
Alt+F11 to open the VBA IDE, double-click "ThisDocument" in the Project =
Explorer (Ctrl+R if you don't see it), and paste the macro in. then =
save Normal.dot (it should save correctly with the macro in place). Now =
every document you open will run this macro whenever you click =
File->Save or hit Ctrl+S.
One caveat to this is that if the document is a new one, then =
ActiveDocument.Save will open the Save As dialog box. If the user then =
clicks Cancel, an error box will pop up displaying "Command failed". I =
remember reading about a way around this, but I couldn't find it. =
Perhaps someone else remembers. It's not to use "On Error Resume Next" =
because that causes the Save button in the Save As dialog to not =
function.

hth,

-Peter

"Dawn Rhoads" <Dawn Rhoads@discussions.microsoft.com> wrote in message =
news:5CD6934F-CE0E-46B2-B4F7-11DC4B8FC756@microsoft.com...
> Thanks for the replies, Charles and Peter, but we don't seem to be on =
the=20
> same page regarding my problem.=20
>=20
> 1) I am trying to make changes to my underlying template, so I need =
to open=20
> the template itself, not create a new document based on it.
>=20
> 2) I really am opening the template itself -- in Word I go to =
File/Open and=20
> navigate to the folder where the templates are saved and open the =
template=20
> itself. I know it is the template and not a "new" document, because =
the=20
> title bar across the top shows the correct file name (such as "Basic=20
> Letter.dot") not "Document1" as it would for a new document.
>=20
> So... I'm pretty sure I'm opening things like I should. As I said, in =
years=20
> past I never had this problem. I haven't changed how I'm working on =
these=20
> Templates, Word has changed how it's reacting. For whatever reason, =
Word is=20
> behaving strangely with respect to saving the files. I must be the =
only=20
> person who is having this problem, which I agree is completely weird, =
but=20
> that's what's happening.
>=20
> Given all that, I'm hoping someone could devise a "save as..." macro =
that I=20
> would=20
> 1) retain the name the file already has (Word is already doing this =
correctly)
> 2) make sure the file type is .dot (this is where Word screws up for =
me)
> 3) keep the file in the location it started in (when I choose a file =
type of=20
> .dot Word automatically flips to my personal templates directory, so I =
have=20
> to re-navigate back to the original location)
>=20
> If anyone could do something like this, it would be a big help to me. =
I can=20
> record a macro, but don't have enough skill to write one, especially =
one that=20
> includes variables like this one would have to. Thanks for any time =
or=20
> attention anyone could offer on this!
>=20
> "Charles Kenyon" wrote:
>=20
> > The way to use templates is not to _open_ them but to create a new =
document=20
> > based on the template. You open the template only when you want to =
make=20
> > changes that will be reflected in all future documents created from =
the=20
> > template. The only time you would open a template and use Save As =
with it is=20
> > when you want to create a new (different) template. For more on the=20
> > different kinds of templates, tabs on the file new dialog, and =
locations of
> > templates folders see =
http://addbalance.com/usersguide/templates.htm.
> >=20
> > As for sharing, see http://addbalance.com/word/movetotemplate.htm =
for=20
> > step-by-step instructions on moving / sharing / copying / backing-up =

> > customizations including AutoText, AutoCorrect, keyboard =
assignments,=20
> > toolbars, macros, etc.
> >=20
> >=20
> > --=20
> >=20
> > Charles Kenyon
> >=20
> > Word New User FAQ & Web Directory: http://addbalance.com/word
> >=20
> > Intermediate User's Guide to Microsoft Word (supplemented version of =

> > Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
> >=20
> > See also the MVP FAQ: http://www.mvps.org/word which is awesome!
> > --------- --------- --------- --------- --------- ---------
> > This message is posted to a newsgroup. Please post replies
> > and questions to the newsgroup so that others can learn
> > from my ignorance and your wisdom.
> >=20
> >=20
> > "Dawn Rhoads" <Dawn Rhoads@discussions.microsoft.com> wrote in =
message=20
> > news:4BF05B28-A60C-4D0F-82C5-5316B8FA1191@microsoft.com...
> > > Any brilliant person out there who can make a "save as .dot" =
macro, that=20
> > > will
> > > automatically retain the original file name and file location, and =
save it=20
> > > as
> > > a .dot file? Bacground of why I would need such a thing is =
below.=20
> > > Thanks
> > > in advance for any help or thoughts anyone can offer!
> > >
> > > We use a lot of templates in Word. We are on Word 2003. Starting =
when we
> > > moved to Word XP, I have encountered a problem where my .dot files =
do not
> > > want to save correctly. In Word 97, if I opened my .dot file, it =
would=20
> > > open
> > > as .dot, I could work on it, and it would save as .dot. No =
problem. Now,
> > > for some reason, Word wants to save it as a .doc. Sometimes it =
warns me=20
> > > it
> > > is doing this, sometimes not. :( Even better, sometimes it =
*appears* to=20
> > > be
> > > a .dot, but it behaves like a .doc. Of course, several features =
of a
> > > template don't work correctly if it's not saved in the correct =
.dot format
> > > (for instance, the "createdate" field).
> > >
> > > I tried changing my default file format to be .dot, but that was a =
pain
> > > because then all my regular documents want to default to be saved =
in my
> > > personal templates folder. I tried changing my templates location =
so it=20
> > > at
> > > least pointed to the highest level of our shared templates, but =
that made=20
> > > it
> > > so my personal autotext and personal toobars didn't work (since my =

> > > Normal.dot
> > > is saved in my templates directory. I can't save my Normal in the =
shared
> > > drive, I don't think, since that would probably over-ride =
everyone's=20
> > > personal
> > > Normal? I was afraid to try that.)
> > >
> > > The only way around this seems to be to always do a "save as" and
> > > specifically choose the .dot extension. Unfortunately, this =
automatically
> > > takes me to my personal templates folder (instead of the shared =
templates
> > > folder it originated from) so I have to re-navigate back to the =
correct
> > > folder (we have multiple folders for our shared templates, so they =
are=20
> > > split
> > > out onto separate tab in the Templates window) and then save. =
This is a
> > > pain. It's far more than a pain when Word sneakily makes a .dot =
file into=20
> > > a
> > > .doc and loses autotext and macros built into that file. (Yes, it =
should
> > > warn me, but it doesn't always do so. Really, I swear. I know =
you don't
> > > beleive me, but it's true. I have reported it to MS on their =
website, but=20
> > > to
> > > date have not seen anything in the Knowledgebase addressing it.)
> > >
> > > I'm sure this is some problem with our MS Word, but no one in my =
company's
> > > Tech Support wamts spend any time on the phone with Microsoft for =
this,=20
> > > since
> > > I'm the only one here who works on our templates. So, after =
struggling=20
> > > with
> > > this for a year or so, thinking maybe I would get used to it, or =
maybe I=20
> > > was
> > > crazy and it would finally stop doing it, I'm looking for other =
options.
> > >
> > > Any thoughts would be greatly appreciated!=20
> >=20
> >=20
> >

Re: Saving .dot files by DawnRhoads

DawnRhoads
Thu Dec 09 17:13:03 CST 2004

Thanks Peter I will try this!

I totally agree, it really seems like some setting or other must be goofed
up, but I've tried several different attempts to locate some such thing
without success.

One question, do you think there would be a way to change it so it doesn't
intercept the main "save"/control-S function? I think it would work just as
well for me if it was it's own special command and/or button (I would be able
to do this part on my own, you don't need to work explain that part for me)
that I could use specifically when I'm working on a template. Then it would
avoid the issue you pointed out for new documents.

I work on my templates as a very specfic part of my job and I'm always aware
when I'm working on a template vs. a regular document so that shouldn't be a
problem for me.

Thanks again for your help and time on this!

"Peter" wrote:

> OK, sounds like you are following the correct procedure for opening a template for editing.
> I think you're expecting it to behave correctly, and I can't tell you why it's not behaving as you'd expect it to behave.
> It sounds like there is some flag in Tools -> Options that is toggled the wrong way, or some other setting that needs to be changed; perhaps someone else knows if this behavior is controlled by an option?
>
> Seems like the real fix is to change the behavior of Word, probably by toggling a setting/flag, but if you can't get there, the following macro should give you a workaround:
>
> Public Sub FileSave()
> ' test for a template two ways, in case Word is changing the document type when it opens.
> ' testing the type is the "right" way to do it, but checking the extension will work, too
> If ActiveDocument.Type = wdTypeTemplate Or Right(ActiveDocument.Name, 4) = ".dot" Then
> ' this document is a template
> ' save the document to its current location as a template
> Call ActiveDocument.SaveAs(ActiveDocument.FullName, wdFormatTemplate)
> Else
> ' this document is not a template, so simply save it.
> Call ActiveDocument.Save
> End If
> End Sub
>
> To install the macro, open Normal.dot just like you'd open any other template (make sure no other Word documents are open at the time), press Alt+F11 to open the VBA IDE, double-click "ThisDocument" in the Project Explorer (Ctrl+R if you don't see it), and paste the macro in. then save Normal.dot (it should save correctly with the macro in place). Now every document you open will run this macro whenever you click File->Save or hit Ctrl+S.
> One caveat to this is that if the document is a new one, then ActiveDocument.Save will open the Save As dialog box. If the user then clicks Cancel, an error box will pop up displaying "Command failed". I remember reading about a way around this, but I couldn't find it. Perhaps someone else remembers. It's not to use "On Error Resume Next" because that causes the Save button in the Save As dialog to not function.
>
> hth,
>
> -Peter
>
> "Dawn Rhoads" <Dawn Rhoads@discussions.microsoft.com> wrote in message news:5CD6934F-CE0E-46B2-B4F7-11DC4B8FC756@microsoft.com...
> > Thanks for the replies, Charles and Peter, but we don't seem to be on the
> > same page regarding my problem.
> >
> > 1) I am trying to make changes to my underlying template, so I need to open
> > the template itself, not create a new document based on it.
> >
> > 2) I really am opening the template itself -- in Word I go to File/Open and
> > navigate to the folder where the templates are saved and open the template
> > itself. I know it is the template and not a "new" document, because the
> > title bar across the top shows the correct file name (such as "Basic
> > Letter.dot") not "Document1" as it would for a new document.
> >
> > So... I'm pretty sure I'm opening things like I should. As I said, in years
> > past I never had this problem. I haven't changed how I'm working on these
> > Templates, Word has changed how it's reacting. For whatever reason, Word is
> > behaving strangely with respect to saving the files. I must be the only
> > person who is having this problem, which I agree is completely weird, but
> > that's what's happening.
> >
> > Given all that, I'm hoping someone could devise a "save as..." macro that I
> > would
> > 1) retain the name the file already has (Word is already doing this correctly)
> > 2) make sure the file type is .dot (this is where Word screws up for me)
> > 3) keep the file in the location it started in (when I choose a file type of
> > .dot Word automatically flips to my personal templates directory, so I have
> > to re-navigate back to the original location)
> >
> > If anyone could do something like this, it would be a big help to me. I can
> > record a macro, but don't have enough skill to write one, especially one that
> > includes variables like this one would have to. Thanks for any time or
> > attention anyone could offer on this!
> >
> > "Charles Kenyon" wrote:
> >
> > > The way to use templates is not to _open_ them but to create a new document
> > > based on the template. You open the template only when you want to make
> > > changes that will be reflected in all future documents created from the
> > > template. The only time you would open a template and use Save As with it is
> > > when you want to create a new (different) template. For more on the
> > > different kinds of templates, tabs on the file new dialog, and locations of
> > > templates folders see http://addbalance.com/usersguide/templates.htm.
> > >
> > > As for sharing, see http://addbalance.com/word/movetotemplate.htm for
> > > step-by-step instructions on moving / sharing / copying / backing-up
> > > customizations including AutoText, AutoCorrect, keyboard assignments,
> > > toolbars, macros, etc.
> > >
> > >
> > > --
> > >
> > > Charles Kenyon
> > >
> > > Word New User FAQ & Web Directory: http://addbalance.com/word
> > >
> > > Intermediate User's Guide to Microsoft Word (supplemented version of
> > > Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
> > >
> > > See also the MVP FAQ: http://www.mvps.org/word which is awesome!
> > > --------- --------- --------- --------- --------- ---------
> > > This message is posted to a newsgroup. Please post replies
> > > and questions to the newsgroup so that others can learn
> > > from my ignorance and your wisdom.
> > >
> > >
> > > "Dawn Rhoads" <Dawn Rhoads@discussions.microsoft.com> wrote in message
> > > news:4BF05B28-A60C-4D0F-82C5-5316B8FA1191@microsoft.com...
> > > > Any brilliant person out there who can make a "save as .dot" macro, that
> > > > will
> > > > automatically retain the original file name and file location, and save it
> > > > as
> > > > a .dot file? Bacground of why I would need such a thing is below.
> > > > Thanks
> > > > in advance for any help or thoughts anyone can offer!
> > > >
> > > > We use a lot of templates in Word. We are on Word 2003. Starting when we
> > > > moved to Word XP, I have encountered a problem where my .dot files do not
> > > > want to save correctly. In Word 97, if I opened my .dot file, it would
> > > > open
> > > > as .dot, I could work on it, and it would save as .dot. No problem. Now,
> > > > for some reason, Word wants to save it as a .doc. Sometimes it warns me
> > > > it
> > > > is doing this, sometimes not. :( Even better, sometimes it *appears* to
> > > > be
> > > > a .dot, but it behaves like a .doc. Of course, several features of a
> > > > template don't work correctly if it's not saved in the correct ..dot format
> > > > (for instance, the "createdate" field).
> > > >
> > > > I tried changing my default file format to be .dot, but that was a pain
> > > > because then all my regular documents want to default to be saved in my
> > > > personal templates folder. I tried changing my templates location so it
> > > > at
> > > > least pointed to the highest level of our shared templates, but that made
> > > > it
> > > > so my personal autotext and personal toobars didn't work (since my
> > > > Normal.dot
> > > > is saved in my templates directory. I can't save my Normal in the shared
> > > > drive, I don't think, since that would probably over-ride everyone's
> > > > personal
> > > > Normal? I was afraid to try that.)
> > > >
> > > > The only way around this seems to be to always do a "save as" and
> > > > specifically choose the .dot extension. Unfortunately, this automatically
> > > > takes me to my personal templates folder (instead of the shared templates
> > > > folder it originated from) so I have to re-navigate back to the correct
> > > > folder (we have multiple folders for our shared templates, so they are
> > > > split
> > > > out onto separate tab in the Templates window) and then save. This is a
> > > > pain. It's far more than a pain when Word sneakily makes a .dot file into
> > > > a
> > > > .doc and loses autotext and macros built into that file. (Yes, it should
> > > > warn me, but it doesn't always do so. Really, I swear. I know you don't
> > > > beleive me, but it's true. I have reported it to MS on their website, but
> > > > to
> > > > date have not seen anything in the Knowledgebase addressing it.)
> > > >
> > > > I'm sure this is some problem with our MS Word, but no one in my company's
> > > > Tech Support wamts spend any time on the phone with Microsoft for this,
> > > > since
> > > > I'm the only one here who works on our templates. So, after struggling
> > > > with
> > > > this for a year or so, thinking maybe I would get used to it, or maybe I
> > > > was
> > > > crazy and it would finally stop doing it, I'm looking for other options.
> > > >
> > > > Any thoughts would be greatly appreciated!
> > >
> > >
> > >
>

Re: Saving .dot files by Peter

Peter
Thu Dec 09 19:37:17 CST 2004


"Dawn Rhoads" <DawnRhoads@discussions.microsoft.com> wrote in message =
news:5623B469-A0D1-44E0-A4F2-4FD91A226899@microsoft.com...
> Thanks Peter I will try this!=20
>=20
> I totally agree, it really seems like some setting or other must be =
goofed=20
> up, but I've tried several different attempts to locate some such =
thing=20
> without success.
>=20
> One question, do you think there would be a way to change it so it =
doesn't=20
> intercept the main "save"/control-S function?=20

Oh, yeah, easily. Change the name of the Sub to something else. =
"SaveDot" would work fine. Then add a button that invokes it. Or add a =
keybinding. Or both.

hth,

-Peter

Re: Saving .dot files by DawnRhoads

DawnRhoads
Mon Apr 18 14:43:04 CDT 2005

This is an old thread, but just for the benefit of anyone following it, or
looking it up later, the macro is working for us (hooray!) I stripped it
down to just one element, however --

Call ActiveDocument.SaveAs(ActiveDocument.FullName, wdFormatTemplate

because I want all the files I will use this with to be saved as Templates,
regardless of what format they started out as.

One thing we noticed here is that since we lock (aka "protect") our
templates before saving them, seems like the only way this macro will run is
to assign it to a toolbar button. You won't be allowed to pick it from the
macro list, and it was reported to me that using a keyboard shortcut didn't
work either (although I did not test that myself).

Thanks for your help, Peter -- this is going to save me a tremendous amount
of time in an upcoming project involving mass changes to all our templates --
cutting out those two or three extra clicks will make a big difference both
in time and in my mental attitude! :)

"Peter" wrote:

>
> "Dawn Rhoads" <DawnRhoads@discussions.microsoft.com> wrote in message news:5623B469-A0D1-44E0-A4F2-4FD91A226899@microsoft.com...
> > Thanks Peter I will try this!
> >
> > I totally agree, it really seems like some setting or other must be goofed
> > up, but I've tried several different attempts to locate some such thing
> > without success.
> >
> > One question, do you think there would be a way to change it so it doesn't
> > intercept the main "save"/control-S function?
>
> Oh, yeah, easily. Change the name of the Sub to something else. "SaveDot" would work fine. Then add a button that invokes it. Or add a keybinding. Or both.
>
> hth,
>
> -Peter
>