PC Review


Reply
Thread Tools Rate Thread

Automatically locking a field?

 
 
John Salerno
Guest
Posts: n/a
 
      17th Jun 2008
Hi everyone. Is there a way that I can have a DATE field in my document such
that it automatically locks when the document is opened, instead of having
to lock it manually?

What I'm thinking is this: I have a memo template that I open and then save
as a new document when I write the memo. What I'd like to have happen is
that I have a DATE field in the memo template which locks when I open the
template, so that the date won't change anymore, then I save it as a new
document, etc. Then when I open the template again later for a new memo, the
field isn't really locked anymore because I never saved it the first time (I
saved it as a new document, I didn't actually change the memo template file
itself).

Is this possible?

Thanks!


 
Reply With Quote
 
 
 
 
Jay Freedman
Guest
Posts: n/a
 
      17th Jun 2008
Hi John,

That's the wrong approach to the solution. Instead, replace the DATE field
in the template with a CREATEDATE field. In each document based on the
template, that field will automatically -- and permanently -- display the
date the document (not the template) was created.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

John Salerno wrote:
> Hi everyone. Is there a way that I can have a DATE field in my
> document such that it automatically locks when the document is
> opened, instead of having to lock it manually?
>
> What I'm thinking is this: I have a memo template that I open and
> then save as a new document when I write the memo. What I'd like to
> have happen is that I have a DATE field in the memo template which
> locks when I open the template, so that the date won't change
> anymore, then I save it as a new document, etc. Then when I open the
> template again later for a new memo, the field isn't really locked
> anymore because I never saved it the first time (I saved it as a new
> document, I didn't actually change the memo template file itself).
>
> Is this possible?
>
> Thanks!



 
Reply With Quote
 
John Salerno
Guest
Posts: n/a
 
      17th Jun 2008
"Jay Freedman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi John,
>
> That's the wrong approach to the solution. Instead, replace the DATE field
> in the template with a CREATEDATE field. In each document based on the
> template, that field will automatically -- and permanently -- display the
> date the document (not the template) was created.


Thanks for the response. I might be using the word "template" wrong in this
context. It's not any kind of official Template document, it's basically
just a Word document with a few things filled in (such as the To and From
fields, since those are almost always the same). Then I just open this
document, save it as a new document, and edit it.

Does what you suggest work with this method, or is there perhaps a better
way for me to use a template than this?


 
Reply With Quote
 
Suzanne S. Barnhill
Guest
Posts: n/a
 
      17th Jun 2008
It actually would work if you use Save As, since the new document you're
saving would get a new creation date.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"John Salerno" <(E-Mail Removed)> wrote in message
news:4857f42f$0$1526$(E-Mail Removed)...
> "Jay Freedman" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi John,
>>
>> That's the wrong approach to the solution. Instead, replace the DATE
>> field in the template with a CREATEDATE field. In each document based on
>> the template, that field will automatically -- and permanently -- display
>> the date the document (not the template) was created.

>
> Thanks for the response. I might be using the word "template" wrong in
> this context. It's not any kind of official Template document, it's
> basically just a Word document with a few things filled in (such as the To
> and From fields, since those are almost always the same). Then I just open
> this document, save it as a new document, and edit it.
>
> Does what you suggest work with this method, or is there perhaps a better
> way for me to use a template than this?
>
>



 
Reply With Quote
 
Jay Freedman
Guest
Posts: n/a
 
      17th Jun 2008
John Salerno wrote:
> "Jay Freedman" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi John,
>>
>> That's the wrong approach to the solution. Instead, replace the DATE
>> field in the template with a CREATEDATE field. In each document
>> based on the template, that field will automatically -- and
>> permanently -- display the date the document (not the template) was
>> created.

>
> Thanks for the response. I might be using the word "template" wrong
> in this context. It's not any kind of official Template document,
> it's basically just a Word document with a few things filled in (such
> as the To and From fields, since those are almost always the same).
> Then I just open this document, save it as a new document, and edit
> it.
> Does what you suggest work with this method, or is there perhaps a
> better way for me to use a template than this?


No, it won't work with that method, because the CREATEDATE field in that
case will always show the date the _original_ document was created. Creating
a new document from a template does set the field properly.

Open your pseudo-template document, change the field to CREATEDATE, click
File > Save As, change the "Save as type" dropdown in the dialog to
"Document Template (*.dot)", give it a name, and click OK. That makes an
"official" template. (Note: I'm assuming you don't have Word 2007, which is
a bit different.) Delete your pseudo-template document so you aren't tempted
to use it any more.

There are two ways you can use this template, with the same results.

(a) Click File > New, click "On my computer" in the task pain <er, pane>,
and double-click the template.[*]

(b) In Windows Explorer, go to %appdata%\Microsoft\Templates, right-click
your template, and choose Send To > Desktop (create shortcut). When you want
a copy of this document, double-click the shortcut on the desktop.
[*] This can be made less painful by adding a button to a toolbar that opens
the New Document dialog directly without going through the task pane. In
Tools > Customize > Commands, select the All Commands category, then find
the FileNewDialog command and drag it to a toolbar. Right-click it and
choose an icon. (See
http://www.word.mvps.org/FAQs/Custom...oToToolbar.htm for
pictures.)

There are alternatives involving macros, but they're even more trouble to
set up and use.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


 
Reply With Quote
 
Jay Freedman
Guest
Posts: n/a
 
      17th Jun 2008
The trouble is that someday you'll forget and just Save instead of Save As,
and the date will be wrong. Of course, you can fix it by doing another Save
As, but it's annoying to have to remember.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Suzanne S. Barnhill wrote:
> It actually would work if you use Save As, since the new document
> you're saving would get a new creation date.
>
>
> "John Salerno" <(E-Mail Removed)> wrote in message
> news:4857f42f$0$1526$(E-Mail Removed)...
>> "Jay Freedman" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi John,
>>>
>>> That's the wrong approach to the solution. Instead, replace the DATE
>>> field in the template with a CREATEDATE field. In each document
>>> based on the template, that field will automatically -- and
>>> permanently -- display the date the document (not the template) was
>>> created.

>>
>> Thanks for the response. I might be using the word "template" wrong
>> in this context. It's not any kind of official Template document,
>> it's basically just a Word document with a few things filled in
>> (such as the To and From fields, since those are almost always the
>> same). Then I just open this document, save it as a new document,
>> and edit it. Does what you suggest work with this method, or is there
>> perhaps a
>> better way for me to use a template than this?



 
Reply With Quote
 
Suzanne S. Barnhill
Guest
Posts: n/a
 
      17th Jun 2008
And of course the workaround MS has devised for users who want to use
documents as pseudo-templates is the "From existing document" option in the
New Document task pane. To my mind, it would be a lot more trouble to
navigate to an existing document to use it this way than to just open the
New/Templates window and pick a template, but I guess it depends on how many
"templates" you have.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Jay Freedman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The trouble is that someday you'll forget and just Save instead of Save
> As, and the date will be wrong. Of course, you can fix it by doing another
> Save As, but it's annoying to have to remember.
>
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP FAQ: http://word.mvps.org
> Email cannot be acknowledged; please post all follow-ups to the newsgroup
> so all may benefit.
>
> Suzanne S. Barnhill wrote:
>> It actually would work if you use Save As, since the new document
>> you're saving would get a new creation date.
>>
>>
>> "John Salerno" <(E-Mail Removed)> wrote in message
>> news:4857f42f$0$1526$(E-Mail Removed)...
>>> "Jay Freedman" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Hi John,
>>>>
>>>> That's the wrong approach to the solution. Instead, replace the DATE
>>>> field in the template with a CREATEDATE field. In each document
>>>> based on the template, that field will automatically -- and
>>>> permanently -- display the date the document (not the template) was
>>>> created.
>>>
>>> Thanks for the response. I might be using the word "template" wrong
>>> in this context. It's not any kind of official Template document,
>>> it's basically just a Word document with a few things filled in
>>> (such as the To and From fields, since those are almost always the
>>> same). Then I just open this document, save it as a new document,
>>> and edit it. Does what you suggest work with this method, or is there
>>> perhaps a
>>> better way for me to use a template than this?

>
>
>



 
Reply With Quote
 
John Salerno
Guest
Posts: n/a
 
      18th Jun 2008
"Jay Freedman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

>(Note: I'm assuming you don't have Word 2007


Yes, I do.


 
Reply With Quote
 
John Salerno
Guest
Posts: n/a
 
      18th Jun 2008
"Jay Freedman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Open your pseudo-template document, change the field to CREATEDATE, click
> File > Save As, change the "Save as type" dropdown in the dialog to
> "Document Template (*.dot)", give it a name, and click OK. That makes an
> "official" template. (Note: I'm assuming you don't have Word 2007, which
> is a bit different.) Delete your pseudo-template document so you aren't
> tempted to use it any more.


Well, I still save documents as Word 97-2003 format, so maybe it doesn't
matter that I have 2007. I was able to save my .doc "template" as a .dot
file, but I don't see any difference. What's the advantage to using an
actual template file instead of just using the .doc file?


 
Reply With Quote
 
John Salerno
Guest
Posts: n/a
 
      18th Jun 2008
"Jay Freedman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> There are two ways you can use this template, with the same results.
>
> (a) Click File > New, click "On my computer" in the task pain <er, pane>,
> and double-click the template.[*]
>
> (b) In Windows Explorer, go to %appdata%\Microsoft\Templates, right-click
> your template, and choose Send To > Desktop (create shortcut). When you
> want a copy of this document, double-click the shortcut on the desktop.


Ok, I think I found one difference between the template and the regular
document. It seems when I open the template by double-clicking the file in
Windows Explorer, then click Save, the Save As dialog comes up, so I guess
it's impossible to save over it accidentally.

BUT, the way I normally open this file is to just go to the Recent Documents
list and choose it from there. Doing it this way doesn't seem to offer the
Save As dialog, so it IS possible to click Save and overwrite it. That sort
of defeats the point.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking cells automatically after enter HagridC Microsoft Excel Misc 2 7th Feb 2010 05:34 AM
Logging in automatically and locking Bioret Windows XP General 1 4th Aug 2007 05:39 PM
User account locking automatically =?Utf-8?B?Q1NVanI=?= Windows Vista Administration 1 17th Jun 2007 01:49 AM
Automatically Locking Machines Wade Rocco Microsoft Windows 2000 Active Directory 3 11th Aug 2004 03:20 PM
XP Automatically Locking Screen AMV Windows XP General 1 8th Jul 2004 04:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:18 PM.