Re: Automatic Field Update
From: Charles Kenyon (msnewsgroup_at_remove.no.spam.addbalance.com)
Date: 03/22/04
- Next message: Charles Kenyon: "Re: AutoCorrect"
- Previous message: Bev: "WORD document title followed by a Table"
- In reply to: macropod: "Re: Automatic Field Update"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 22 Mar 2004 10:37:55 -0600
When you have such a field in an already saved document and then use the
Save As command to save it, even to the same name, it changes the creation
date for the file. If the field is updated, it will change.
-- Charles Kenyon See the MVP FAQ: <URL: 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. "macropod" <pNeOd.sStPeAiMn@pcug.org.au (del NO.SPAM)> wrote in message news:c3j4un$28hipa$1@ID-216222.news.uni-berlin.de... > Hi Charles, > > Print Preview probably won't update a CreateDate field because saving the > document for the first time is required to set that property... > > Cheers > > "Charles Kenyon" <msnewsgroup@remove.no.spam.addbalance.com> wrote in > message news:OVN31WhDEHA.576@TK2MSFTNGP11.phx.gbl... > > Yet one more update on updating fields... > > > > I checked again, and even with "Update fields" checked, Print Preview and > > the related code flicking in and out does not update a CreateDate field in > a > > document body, although printing does. (The createdate field normally > never > > has to be updated in a document. In this one, I created the field in a > > document and then used SaveAs to save it to a new name. If I manually > update > > the field it reflects the creation date for the new docmument. Same if I > > print with the option checked. Not so, though, with Print Preview. So I > > guess it depends on which fields you want to update. I know it works well, > > although not perfectly, with fields in the header/footer. > > -- > > > > Charles Kenyon > > > > See the MVP FAQ: <URL: 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. > > > > "Suzanne S. Barnhill" <sbarnhill@mvps.org> wrote in message > > news:uwEP9AgDEHA.1588@tk2msftngp13.phx.gbl... > > > Did you have "Update fields" checked on the Print tab of Tools | > Options? > > > > > > -- > > > Suzanne S. Barnhill > > > Microsoft MVP (Word) > > > Words into Type > > > Fairhope, Alabama USA > > > Word MVP FAQ site: http://www.word.mvps.org > > > Email cannot be acknowledged; please post all follow-ups to the > newsgroup > > so > > > all may benefit. > > > > > > "Charles Kenyon" <msnewsgroup@remove.no.spam.addbalance.com> wrote in > > > message news:uFwx4QeDEHA.1600@tk2msftngp13.phx.gbl... > > > > So far as I know the PrintPreview method only works for fields in > > > > headers/footers (which the proposed macro selecting and updating won't > > > > reach). > > > > > > > > I just tested it using CreateDate and SaveDate fields in the body of a > > > > document. (I switched in and out of Print Preview manually instead of > by > > > > code.) > > > > > > > > > > > > -- > > > > > > > > Charles Kenyon > > > > > > > > See the MVP FAQ: <URL: 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. > > > > > > > > "Graham Mayor" <gmayor@NOSPAMmvps.org> wrote in message > > > > news:e2pCHHZDEHA.3348@TK2MSFTNGP11.phx.gbl... > > > > > Given the provisos raised by Charles - an autoopen macro in the > > document > > > > > template containing: > > > > > > > > > > ActiveDocument.PrintPreview > > > > > ActiveDocument.ClosePrintPreview > > > > > > > > > > would probably suffice. > > > > > > > > > > -- > > > > > <>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<> > > > > > Graham Mayor - Word MVP > > > > > > > > > > Web site www.gmayor.com > > > > > Word MVP web site www.mvps.org/word > > > > > <>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<> > > > > > > > > > > > > > > > > > > > > > > > > > Charles Kenyon wrote: > > > > > > That _is_ the simple solution. However, you probably do not want > ASK > > > > > > or FILLIN fields to update each time a document is opened. > > > > > > > > > > > > What are you doing with these documents? Would it be done better > > with > > > > > > templates? Properly, a document is something you open, make > changes, > > > > > > and save the changes (to the same name). You may do this > repeatedly. > > > > > > You may print it. A template is a base from which new documents > are > > > > > > created. Changes are made to those new documents and then they can > > be > > > > > > saved and/or printed. They don't take the name of the template. > > > > > > > > > > > > Which fields need updating? > > > > > > > > > > > > > > > > > > "Mike Morisoli" <michael@removeme.vieon.net> wrote in message > > > > > > news:OYL7aXUDEHA.3236@TK2MSFTNGP09.phx.gbl... > > > > > >> We have numerous Word documents stored in Sharepoint and we would > > > > > >> like to show the latest field data every time a document is > opened. > > > > > >> > > > > > >> > > > > > >> > > > > > >> Does anyone have a suggestion on the best way to do this? Is it > a > > > > > >> matter of adding a macro that fires every time the document is > > > > > >> opened and it then selects the entire document and issues the F9 > > > > > >> update via code, or is there a simpler solution. > > > > > >> > > > > > >> > > > > > >> > > > > > >> Thanks for the ideas, > > > > > >> > > > > > >> > > > > > >> > > > > > >> Mike > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.627 / Virus Database: 402 - Release Date: 16/03/2004 > >
- Next message: Charles Kenyon: "Re: AutoCorrect"
- Previous message: Bev: "WORD document title followed by a Table"
- In reply to: macropod: "Re: Automatic Field Update"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|