Thursday, July 5, 2007

FW: WordTips for 19 April 2003

-----Original Message-----
From: WordTips [mailto:awyatt@dcomp.com]
Sent: Saturday, April 19, 2003 12:10 PM
To: samaruna@omantel.net.om
Subject: WordTips for 19 April 2003

WordTips for 19 April 2003 Copyright 2003 by DCI
**********************************************************************

In This Issue...
----------------
Publisher's Notes
Tips
* Copying Custom Properties
* The Case of the Disappearing Icons
* Changing the Default Font for Envelopes
* Printing an Outline
Help Wanted
* Inconsistent Adding of Words to a Custom Dictionary
* Problems with TOC Styles
Publisher and Copyright Information
Important Links
Subscription Information


Help support WordTips and obtain a valuable resource by
purchasing your own copies of the WordTips archives. Visit the
Web site (http://store.vitalnews.com/wtarch.html) for more info,
or send a blank e-mail to WordTips-CDs@lists.vitalnews.com.


**********************************************************************
PUBLISHER'S NOTES * PUBLISHER'S NOTES * PUBLISHER'S NOTES
**********************************************************************

Happy Easter, everyone. I hope you have a joyous season.

-Allen


**********************************************************************
TIPS * TIPS * TIPS * TIPS * TIPS * TIPS * TIPS * TIPS * TIPS
**********************************************************************
If you have an idea for a tip, send it our way. You can e-mail the
suggestion to awyatt@dcomp.com. Any tips contributed will be credited in the
issue in which they appear.


------------------------------
Copying Custom Properties
------------------------------
Custom document properties are a great way to store unique information that
is associated with a document. For instance, you may have a company-assigned
document number that needs to be stored with a document. A custom property
fits the bill quite nicely for this purpose.

As you add custom properties to a document, you may start wondering if there
is an easy way to copy them from one document to another.
Unfortunately, there is no way to do this. (In my estimation, this
capability would make a fine addition to the Organizer.) You can, however,
create a macro that will do the copying for you. The following macro will do
just that:

Sub SetDocProps()
Dim dp() As DocumentProperty
Dim CustomPropCount As Integer
Dim i As Integer
Dim intResponse As Integer

If Windows.Count > 2 Then
MsgBox "There are more than two windows. Please " & _
"close the others and re-run the macro.", , _
"Too many windows"
Exit Sub
End If

On Error GoTo Err_Handler

intResponse = MsgBox("Are you currently in the source document?", _
vbYesNoCancel, "Copy Custom Properties")

If intResponse = vbNo Then Application.Run MacroName:="NextWindow"

CustomPropCount = ActiveDocument.CustomDocumentProperties.Count
ReDim dp(1 To CustomPropCount)

For i = 1 To CustomPropCount
Set dp(i) = ActiveDocument.CustomDocumentProperties(i)
Next i

Application.Run MacroName:="NextWindow"

For i = 1 To CustomPropCount
If dp(i).LinkToContent = True Then
ActiveDocument.CustomDocumentProperties.Add _
Name:=dp(i).Name, _
LinkToContent:=True, _
Value:=dp(i).Value, _
Type:=dp(i).Type, _
LinkSource:=dp(i).LinkSource
Else
ActiveDocument.CustomDocumentProperties.Add _
Name:=dp(i).Name, _
LinkToContent:=False, _
Value:=dp(i).Value, _
Type:=dp(i).Type
End If
Next i

MsgBox "The properties have been copied."
Exit Sub

Err_Handler:
' if Word raises an error, then allow the user
' to update the custom document property

intResponse = MsgBox("The custom document property (" & _
dp(i).Name & ") already exists." & vbCrLf & vbCrLf & _
"Do you want to update the value?", vbYesNoCancel, _
"Copy Custom Properties")

Select Case Response
Case vbCancel
End
Case vbYes
ActiveDocument.CustomDocumentProperties(dp(i).Name).Value _
= dp(i).Value
Resume Next
Case vbNo
Resume Next
End Select
End Sub

This code is an example of how to copy custom properties, but it is not
bulletproof. For instance, it does not check to see if there are actually
any custom properties in the source document; it just assumes that there
are. Such coding could be easily added, however.

In order to use the macro, make sure that you have only the source and
target documents open, and you should only have one window open per
document. When the macro is finished, you will need to save the target
document.

(Thanks to Neman Syed, Charles Kenyon, and David G. Lett for contributing to
this tip.)


------------------------------
The Case of the Disappearing Icons
------------------------------
Subscriber Dennis Contat wrote about a problem he was having with Word on
his work computer and his home computer. He created some macros and assigned
those macros to custom icons on a toolbar. He was able to do this on his
home computer, and he was able to transfer the macros to his work computer
by copying the Normal.dot file. But the custom toolbar buttons did not copy.
The buttons were actually on the work computer, but they were blank, with no
pictures on them. Further, he could not create any custom toolbar buttons on
the work machine.

Word stores macros in template files; this is well known. If you stored your
macros in the Normal.dot template, and then copied that template to another
machine (running the same version of Word), then those macros would be
available on that other machine.

Changes to toolbars are also stored in templates, but it appears that the
custom icons that appear on the buttons are not stored in templates,
however. They are stored (for some reason) in the Registry.
Thus, they are not so easily transferred from one machine to the other.

The way to try to fix this problem is to copy the Normal.dot file to the
work computer, then reset the toolbar completely. (This is done from the
Toolbars tab of the Customize dialog box.) Then, try to add the three
buttons from scratch and customize their icons. If this does not work, it
could be because you don't have the proper permissions on your work computer
to write to the Registry. If this is the case, a check with your company's
IT department should determine how to fix the situation.

(Thanks to Knut Torgersen for this tip.)


Got a Word-related product or service you want to let others
know about? Advertising in WordTips is a cost-effective way to let
thousands of serious Word users know about you. For more info,
visit the Web site (http://www.VitalNews.com/WordTips/), or send
a blank e-mail to WordTips-Advertising@lists.vitalnews.com.


------------------------------
Changing the Default Font for Envelopes
------------------------------
Word includes an Envelopes feature that makes it pretty easy to create your
own professional-looking envelopes. The feature makes certain assumptions
about how different parts of the envelope should be printed. This includes
the font that Word uses to print the envelope's information.

The Envelopes and Labels tool in Word depends on a predefined style when
creating an envelope. The style used for the main address on the envelope
is, appropriately enough, Envelope Address. Likewise, the style used for the
return address is named Envelope Return. When you click on either the Print
or Add to Document buttons in the Envelopes and Labels dialog box, this
style is grabbed and used for formatting the addresses on the envelope.

If you want to change the font used by Word in creating envelopes, you need
to change the style used for this purpose by Word. To do this, follow these
steps if you are using Word 97 or Word 2000:

1. Click on the New tool on the toolbar to open a new document
based on the Normal.dot style. (If you want to fix this problem
in other templates, you should open the template directly or
create a blank document based on that template.)
2. Choose the Style option from the Format menu. Word displays the
Style dialog box.
3. In the List drop-down list at the bottom of the dialog box, make
sure you select All Styles.
4. In the list of styles, select Envelope Address.
5. Click on Modify. Word displays the Modify Style dialog box.
6. Click on the Format button and choose Font. Word displays the
Font dialog box.
7. Change the font information, as desired.
8. Click on OK to close the Font dialog box.
9. Make sure the Add to Template check box is selected, at the
bottom of the Modify Style dialog box.
10. Click on OK.
11. Click on Cancel to close the Style dialog box.

When done, you should repeat these steps if you want to change the font used
for the return address. The only difference, of course, is that in step 4
you should select the Envelope Return style.

If you are using Word 2002, the steps you follow to make the changes are
slightly different. Follow these steps, instead.

1. Create a new, blank document by clicking on the Blank Document
link on the New Document task pane. This creates a new document
based on the Normal.dot style. (If you want to fix this problem
in other templates, you should open the template directly or
create a blank document based on that template.)
2. Choose Styles and Formatting from the Format menu. Word displays
the Styles and Formatting task pane.
3. In the Show drop-down list at the bottom of the dialog box, make
sure you select All Styles.
4. Scroll through the list of styles until you see the Envelope
Address style.
5. Hover the mouse pointer over the style name, and then click on
the down-arrow that appears at the right side of the style name.
A drop-down menu appears.
6. Click on Modify. Word displays the Modify Style dialog box.
7. Click on the Format button and choose Font. Word displays the
Font dialog box.
8. Change the font information, as desired.
9. Click on OK to close the Font dialog box.
10. Make sure the Add to Template check box is selected, at the
bottom of the Modify Style dialog box.
11. Click on OK.

Repeat these steps if you want to change the font used for the return
address, but in step 4 make sure you select the Envelope Return style.

When you save your document or close Word, you are asked if you want to save
your changes to the template. Make sure you do this. Your envelopes, when
created in a document that uses this template, should now use the font you
specified.


------------------------------
Printing an Outline
------------------------------
If you are using Outline view, Word will print only the heading levels you
have chosen to display. This means you can print an outline for your
document easily and quickly. To print a single copy of your outline, follow
these steps:

1. Make sure your outline shows all the headings you want
displayed.
2. Make sure each heading is formatted in the appropriate manner.
3. Using the mouse, click on the Print tool on the toolbar.


**********************************************************************
Step up to the PROFESSIONAL version of WordTips--WordTips Premium.
This week WordTips Premium subscribers also learned about:

* Inserting a Document's Size
* Adding a Dynamic Total in Your Document
* Automatically Opening a Document at a Specific Zoom Setting
* Fitting Your Text In a Cell

Each weekly newsletter is in professional PDF layout, and presents DOUBLE
THE TIPS (Premium subscribers see articles you won't in regular
WordTips) with great, useful graphics. Plus, WordTips Premium subscribers
get valuable money-saving benefits. For more information, (including a
sample issue) visit the following Web page:

http://store.vitalnews.com/premium.html


**********************************************************************
HELP WANTED * HELP WANTED * HELP WANTED * HELP WANTED
**********************************************************************
This section is for those having problems making Word behave. Having a
problem you want to see addressed? Send it to WTHelp@VitalNews.com.
Do you have an answer to the problems below? Send your answer to
WTAnswers@VitalNews.com (all responses become the sole property of DCI and
can be used in any way deemed appropriate). If your response is used in a
future issue, you will be credited for your contribution to the answer.


------------------------------
Inconsistent Adding of Words to a Custom Dictionary
------------------------------
I work with text that includes many names, often with accents, and terms
that are borrowed from other languages. When one of these words appears with
red line beneath, indicating misspelling, I right click and add to
dictionary. Sometimes, I've checked the language of the word to be sure the
dictionary is my custom.dic and not another dictionary. I have auto-detect
language turned off. The problem is that while I take care of the words in
the current document, when I open a new document many of the words that I
previously said to add to the dictionary appear again as misspelled words.
Some, however, take hold and never give me trouble again. Why are some of
the words not "surviving" from one document to another? (William Allen)


------------------------------
Problems with TOC Styles
------------------------------
I have a problem with the formatting of my generated TOC in Word.
Sometimes it seems to take the size of the fonts from the font size of the
headings rather than from the styles for TOC1, TOC2, etc.
Modifying and reapplying the TOC styles has no effect. I also find that I
cannot save my modified TOC styles. Any ideas available? (Geoff
Bethlehem)


**********************************************************************
PUBLISHER and COPYRIGHT INFORMATION
**********************************************************************
WordTips (ISSN 1522-3744) is published weekly by Discovery Computing Inc.
(DCI), PO Box 2145, Mesa, AZ 85214. WordTips is a trademark of DCI.
Copyright 2003 by DCI, All Rights Reserved. All broadcast, publication, or
retransmission is strictly prohibited without prior written permission from
the publisher. Full information on distribution rights can be found in the
WordTips FAQ at the WordTips Web page.


**********************************************************************
IMPORTANT LINKS * IMPORTANT LINKS * IMPORTANT LINKS
**********************************************************************

WEB ADDRESSES
-------------
WordTips Web page -

http://www.VitalNews.com/wordtips/
WordTips Premium Web page -

http://store.VitalNews.com/premium.html
WordTips Archives -

http://store.VitalNews.com/wtarch.html
Advertising in WordTips -

http://www.VitalNews.com/advert.htm
Vital News Store -

http://store.VitalNews.com/


E-MAIL ADDRESSES
---------------
Help Wanted questions - WTHelp@VitalNews.com
WordTips sample issue - WordTips-Sample@lists.vitalnews.com
WordTips Premium info - WTPremium@VitalNews.com
WordTips Archive info - WordTips-CDs@lists.vitalnews.com
Advertising in WordTips - WordTips-Advertising@lists.vitalnews.com
Editor and Publisher - awyatt@dcomp.com


**********************************************************************
SUBSCRIPTION INFORMATION * SUBSCRIPTION INFORMATION
**********************************************************************
TO RECEIVE WordTips regularly via e-mail at no charge, send an e-mail to <
join-wordtips@lists.vitalnews.com >.

You are currently subscribed to wordtips as: [samaruna@omantel.net.om] To
unsubscribe, forward this message to
leave-wordtips-296702L@lists.vitalnews.com

No comments:

Business Line - Markets