WD98: Ordinal Dates Are Mail Merged without Superscript (185152)
The information in this article applies to:
- Microsoft Word 98 Macintosh Edition
This article was previously published under Q185152 SYMPTOMS
If you use the mail merge feature of Word 98 Macintosh Edition, ordinal
dates (for example, 21st) do not retain their superscript size. Ordinal
dates are formatted with the style of the field they are being merged with.
CAUSE
The result of the mail merge uses the formatting of the main document.
A field can contain only one character attribute. If you apply superscript
formatting to a field, the entire field result will be formatted with
superscript characters.
WORKAROUND
You can work around this design by automating the AutoFormat feature. To
record a macro that will change dates to ordinals within the merged
document, follow these steps:
- In the document that results from a mail merge, on the Tools menu, point
to Macro, and click Record New Macro.
- Enter a name, assign the macro to Toolbars or Keyboard if you want, and
then click OK.
- On the Tools menu, click AutoCorrect, and then click the AutoFormat As
You Type tab.
- Click to clear every check box except "Ordinals (1st) with superscript."
- Click the AutoFormat tab, click to clear every check box except
"Ordinals (1st) with superscript," and click OK.
- On the Tools menu, click AutoCorrect, and then click OK.
NOTE: This will replace date formats dates with ordinals (1st - 1 with
the st superscripted).
- On the Tools menu, click AutoCorrect and click the AutoFormat As You
Type tab.
- Select every check box you want, click the AutoFormat tab and then
select every check box you want. Click OK.
- On the Tools menu, point to Macros, and click Stop Recorder.
NOTE: You must use the Visual Basic Editor to edit the code to personalize
your macro. To view or edit the macro code, follow these steps:
- On the Tools menu, point to Macro, and then click Macros.
- Click "Normal.dot" (or whatever template you saved your macro to) from
the "Macros In" list, select the macro name, and then click Edit.
Once completed, you can copy the macro to any template and run it each time
you perform a mail merge. To copy the macro to your Normal template, use
the Visual Basic Editor, which allows you to copy the associated modules
and forms.
You can also copy macros using the Organizer. To do this, follow these
steps:
- Open the Project (template) that contains your macro in the left pane,
and open Normal (or the template you want to copy to) in the right pane.
- Click the Macro Project Items tab.
- Click Copy to copy the appropriate modules and forms from your custom
template to Normal (or template you want).
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
Modification Type: | Major | Last Reviewed: | 6/17/2005 |
---|
Keywords: | kbhowto KB185152 |
---|
|