Using Letterhead Template Via Code
Q: 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.
A: -See http://addbalance.com/word/templatesmenu.htm. strPath = "C:Documents and SettingsAll UsersDocumentsShared Templates" strName = "letterhead.dot" Documents.Add Template:= strPath & strName, _ NewTemplate:=False, _ DocumentType:=wdDocument, _ Visible:=True -Take a look at: How to set up letterhead or some other document where you want one header on the first page and a different header on other pages. http://www.addbalance.com/word/headersfooters.htm This gives step-by-step instructions. (It also has the following links) Some other pages to look at: Letterhead Tips and Instructions http://home.earthlink.net/~wordfaqs/Letterhead.htm Letterhead Textboxes and Styles tutorial http://addbalance.com/word/download.htm#LetterheadTextboxesAndStylesT... Template Basics http://www.addbalance.com/usersguide/templates.htm How to Create a Template - Part 2 - essential reading http://www.mvps.org/word/FAQs/Customization/CreateATemplatePart2.htm Word "Forms" http://www.addbalance.com/word/wordwebresources.htm#Forms and Word for Word Perfect Users http://www.addbalance.com/word/wordperfect.htm if you are coming from a WP environment (or even if you are not). If you are interested in creating templates that will work with the letter wizard or use that wizard, you should look at the chapter on Advanced Document Formatting in Using Office 2003 (or whatever your version is), Special Edition, by Ed Bott and Woody Leonhard. It has detailed instructions including instructions on getting the fields you want from your Outlook Contacts for addressing a letter. (Chapter 19 of SE Using Office 2003) You should be able to get this through your public library or at Amazon.com http://www.amazon.com/exec/obidos/ISBN=0789729555/balancecheckbookA/ Finally, take a look at the letter templates that come with Word. While they are no great shakes as letterhead, they do use styles and AutoText lists very well. If you use the same style names that are used in those templates in your own letterhead for the same parts of the document, you will have better luck with using the built-in AutoText entries in Word.
Discuss It!
Most Popular Articles
- Ask Us
- Heartburn Gerd
- The High School Yearbook
- Free Printable Power Of Attorney For
- Reflux
- Florida Power Of Attorney Forms
- Cheap Contact Lenses Coloured
- Free Ged Study Guide
- Colored Contact Lenses
- Texas Power Of Attorney Form
- Temporary Medical Power Of Attorney
- Electrical Engineering Vs. Electrical Engineering Technology Salaries
- Is It Associate Or Associates Degree?
- Accounting Degree Vs Certificate
- On All Three Credit Reports.
- Accurate Forex Trading Signals
- Free Printable Durable Power Of Attorney Forms
- Celexa Side Effects
- Prozac And Alcohol
- How Early In Pregnancy Do You Get Heartburn
Marketplace
Related Articles
- Can I Save Docs Without Letterhead Template Included?
- How-to Use A Letterhead Layout Inside Word
- Inserting Logos In Letterhead
- Letterhead Help Please
- Legal Letterhead Fonts
- I Have Decided To Create My Own Letterhead.
- Trying To Create A Digital Letterhead
- How To Print A Letterhead
- Letterhead Autotext Goofy Formatting
- How Can I Remove Letterhead
- Has Anyone Got A Book Called 'logo & Letterhead' (isbn 1-56496-337-3)?
- Making A Letterhead Template
- How Do I Save My Letterhead On My Emails
- Delurking And Req: Letterhead And Stationery
- How Do I Make Letterheads In Word?
- Need Help & Sample File For Namecard And Letterhead
- Managing Changing Letterhead
- Making An Outlook Email Letterhead?
- Need Help Creating Legal Letterhead?
- Creating A Letterhead Template In Word 2000 (help) Tu? Cho?n
- Printing Vs Purchasing Letterhead
- Printing Letterhead On Laser Printer ?
- Printing Letterhead And File Copy Letters...
Related Categories
- Energy
- Auction
- Stocks
- Dog
- Coffee
- Course
- Travel
- Law
- Mortgage
- Reflux
- Computers
- Student
- Architectural Engineering
- Perfume
- Hot Tubs
- History
- Business
- Rehab
- Home Improvement
Recently Added
- Research Funding Agencies In India
- Open Source Project Management Tool
- Project Time Management
- Media Asset Management Software
- Free Forex Strategies
- Forex Rate Online
- Forex Rate India
- Free Forex Trading Tutorial
- Forex Auto Trading System
- Forex Brokerage Firms
- Free Forex Signals Software
- Swiss Forex Trader
- Forex Trading Mini Account
- Forex Software Trader
- Live Forex News
- Trading The Forex Market
- Best Forex Trading Signals
- Wall Street Forex
- Forex Managed Funds
- Forex Broker Reviews Ratings