Charles
Thu Mar 17 08:43:45 CST 2005
If you want to change the contents of your template, you need to open it.
You are creating a new document, making changes in that document, and
expecting them to show up in the next new document you create based on the
(unchanged) template. That isn't how it works. 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.
--
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.
"R. Choate" <rchoatecpa@NoSpam.com> wrote in message
news:e7uvcMeKFHA.732@TK2MSFTNGP12.phx.gbl...
>I think I better clarify some more. First off, I think I misspoke when I
>said that my letterhead is residing in/on the header or
> footer. I know that in the letterhead template, I cannot select the
> graphic/letterhead unless I click to view headers and footers,
> otherwise it looks like a watermark. So I clicked View>Headers and Footers
> and then I selected the letterhead graphic (which covers
> the whole page) and I copied and then pasted into my own template
> application in the same header/footer area. I should further
> clarify that when I say I pasted into my template, I mean that when I open
> my template file (xyz.dot) and it shows "document 1",
> that is where I open headers/footers and paste the graphic.
>
> In any case, I've tried the code which Charles posted and it does not show
> the letterhead graphic. The application has always
> contained the following code:
>
> 'starts new document
> documents.add Template:="", NewTemplate:=False
>
> I replaced this with Charles' code (adjusted for the correct info) and got
> nada.
>
> I do know that if I manually paste the text copied from a letter created
> by my application onto the blank (blank other than having
> the letterhead appearing in the background and looking kind of washed out)
> that appears when I open the letterhead template
> ("document 1") , and then go to print preview or just print the document,
> the letter appears correctly in print preview and it
> prints correctly.
>
> I may have mentioned that my application is a .dot file and is very
> substantial. It creates various letters for a public accounting
> firm and is much more "heavy duty" than any canned template. If you were
> to see it you would likely be shocked that I'm stumped by
> this. The thing is about 2 Meg and contains a ton of code. I really need
> to make this letterhead thing work from code in this file.
> I'm very hopeful somebody can show me what I'm not seeing. Perhaps the
> graphic is not related to the header or footer other than it
> appears to be embedded and washed out unless I am in header/footer view.
> As far as the business about primary, secondary, or other
> headers and footers, I don't know how to go to those layers.
>
> As to whether I want the letterhead on just the 1st pg, yes I do. I also
> only want the letterhead under certain circumstances, but
> first I need to get it to work at all (via code). Typically, this template
> is loaded in the templates for Word and a button is
> clicked to open my userform. After that, the user answers a bunch of
> questions on the form, some of it is automatically filled in
> via code, and then they click an "Enter" button on the form and it writes
> the complete letter.
>
> I hope I have provided enough info for you to help me better.
>
> Thanks !
> --
> RMC,CPA
>
>
> "R. Choate" <rchoatecpa@NoSpam.com> wrote in message
> news:egcJTISKFHA.4092@tk2msftngp13.phx.gbl...
> I have a large Word app that I built a long time ago for a client. Now
> they are using a new PDF system and the letterhead graphic is
> now to be handled in Word instead of in the PDF driver. What I mean there
> is that the company letterhead, which goes down the side
> and across the top, is to be applied in Word and layered over the letter
> which the app creates. The letterhead is not to be used all
> the time, so I have to be able to basically turn that on or off.
>
> The client has given me a template with the letterhead graphic embedded
> into the header/footer layer. My app is also a template and
> is loaded into the Office/Startup area with other templates. I would like
> to have my app create the letter as it has always done,
> but use the template they gave me to attach their letterhead. This would
> be the least painful thing to do I believe. It would
> probably be easier to have the graphic on the header/footer layer of my
> own app, but I've put the graphic there and when the letter
> is created, the letterhead graphic is nowhere to be seen. This is the one
> big Word app I've ever built. I'm usually an Excel and
> Access guy, but this app is substantial and is userform driven. There is
> tons of code already invested so I really need to make this
> letterhead piece work. I've studied the code but I cant figure it out. I'm
> hoping you can help me.
>
> There is a piece of code where it says document.add Template:="",
> NewTemplate:=false
>
> I may not have quoted that snippet exactly but I'm sure you know the
> method. I've tried changing the "" and putting my letterhead
> template path and name inside the double quotes, but that does not result
> in the letterhead showing up either. I'm stumped. Lets
> assume for now that both the main app and the letterhead template (which
> both have .dot extensions) are on the desktop.
>
> Thanks in advance!
> --
> RMC,CPA
>
>
>
>