WD: How to Format Margins Within a Table Cell or Label
ID: Q142966
|
The information in this article applies to:
-
Microsoft Word for the Macintosh, versions 6.0, 6.0.1
-
Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
-
Microsoft Word for Windows NT, version 6.0
-
Microsoft Word for Windows 95, version 7.0
SUMMARY
In Word, you can use the Page Setup dialog box to position text on a single
page, in a column, or in the whole document. However, to position text
within a label, each label or cell "margin" can be adjusted by setting left
and right indents and spacing before and after the text.
This article assumes you have already created a label sheet and saved it
as a template.
For additional information on creating custom labels in Word, please see
the following article in the Microsoft Knowledge Base:
Q142965 How to Create and Save Custom Labels in Word
MORE INFORMATION
In these instructions, "cell" refers to the label on the label sheet
and "table" refers to the label sheet itself.
Positioning Text Within a Single Cell
The following steps explain how to position text in a single cell in a
table:
- Create a new document based on your label template.
For additional information, please see the following article(s) in the
Microsoft Knowledge Base:
Q142965 How to Create and Save Custom Labels in Word
- Position the insertion point in the first paragraph of the first cell.
- Type the first line of address text.
- On the Format menu, click Paragraph.
- Under Indentation Left, type (in inches) the desired distance from the
left edge of the cell to the first word. If desired, type a measurement
for the right edge of the cell; this is usually not required.
- Under Spacing Before, type (in inches or points) the desired distance
from the top edge of the cell to the first line of text.
- Click OK, and then press ENTER.
- To remove the spacing before on the second paragraph, click Paragraph
on the Format menu. Under Spacing Before, change the value to 0 pt.
NOTE: Spacing Before should only be applied to the first line of the
cell so that no spacing appears between the lines of the address.
- Type the remaining lines of the address.
Positioning Text Within Every Cell
The following steps explain how to position text within every cell of the
whole table:
- Create a new document based on your label template, turn on paragraph
marks, and position the insertion point in the first paragraph of the
first cell.
- On the Format menu, point to Style, and click New.
- In the Name box, type Rest of Label.
For Style For Following Paragraph, select the "Rest of Label" style.
- Click Format, and then select Paragraph from the list.
- Under Indentation Left, type (in inches) the desired distance from the
left edge of the cell to the first word of the address. Click OK.
NOTE: If you plan to use these styles in other label documents, select
the "Add To Template" check box. This new style will be available
for use in any other document based on the current template.
- Click OK.
- Click New, and type the name First Line of Label. For Style for Following Paragraph, select the "Rest
of Label" style.
- Click Format, and then select Paragraph from the list.
- Under Indentation Left, type (in inches) the desired distance from the
left edge of the cell to the first word of the address. Under Spacing
Before, type (in inches or points) the desired distance from the top
edge of the cell to the first line of text. Click OK.
- If desired, select the Add To Template check box. See NOTE above.
- Click OK then click Apply.
The first paragraph of the cell should now be formatted with the 'First
Line of Label' style. Once you begin to type the address information, the
remaining address lines will be formatted with the 'Rest of Label' style.
To copy this cell's formatting to the remaining cells of the table, see the
next section entitled "Copying Cell Formatting".
Copying Cell Formatting
Microsoft provides programming examples for illustration only, without
warranty either expressed or implied, including, but not limited to, the
implied warranties of merchantability and/or fitness for a particular
purpose. This article assumes that you are familiar with the programming
language being demonstrated and the tools used to create and debug
procedures. Microsoft support professionals 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
needs. If you have limited programming experience, you may want to contact
the Microsoft fee-based consulting line at (800) 936-5200. For more
information about the support options available from Microsoft, please see
the following page on the World Wide Web:
http://www.microsoft.com/supportnet/refguide/
The following macro copies the formatting of the first cell to the
remaining cells in the table. Position the insertion point in the first
cell of the table. On the Tools menu, choose Macro. Give the macro a
name. Under Macros Available In, select your template name, and then click
Create. Type the macro code as follows:
Sub Main
CharRight 1, 1
CopyFormat
TableSelectTable
PasteFormat
End Sub
On the File menu, click Close and click Yes to save the changes to the
template.
Running the Macro
- Position the insertion point in the first paragraph of the first cell.
- On the Tools menu, click Macro.
- Select the macro name, and then click Run.
Once the macro has been run, each cell should now be formatted with the
'First Line of Label' style. At this point, you can either use the document
and type your addresses, or you can save the document as another template
if this formatting will be used again in the future.
Additional query words:
formatting space spacing layout
Keywords : wordnt winword ntword kblayout macword word6 word7 word95
Version : MACINTOSH:6.0,6.0.1; WINDOWS:6.0,6.0a,6.0c,7.0; winnt:6.0
Platform : MACINTOSH WINDOWS winnt
Issue type : kbhowto
|