Back to Technical Support Document Index

MailMerge: Right Justification

4x

Tech Support Addenda #0202a

Right justifying fields and text:

  1. Calculate the text width of your letter. Look at the bottom of your computer screen while in MailMerge.
    Subtract your right margin from your left margin (RM: - LM:)
  2. Replace n in the following formulas with the text width of your letter.
    Replace fieldname with field name (Alt-F in MailMerge brings up available field pick list).
  3. If you need to adjust your margins, it often helps to put hard returns at the end of your lines before you reset your margins - to prevent your text from reformatting. You would need to do this for every line that wraps.

    Here's how:
    a.) Make sure that you are in INSERT mode.
    b.) Starting at the first line hit the END key and then hit the ENTER key.
    c.) The remainder of your text will drop one line and your cursor will be on a blank line. (If it is not, you are not in INSERT mode!) Hit the DELETE key once, the blank line will be deleted and the remainder of your text will come up one line.
    d.) Repeat this process to the end of your letter.

Now you can reset your margins without your text reformatting!

FORMULAS:

basic version:

{RIGHT(SPACE(n)+ALLTRIM(fieldname), n)}

Separate multiple fields with + " "+

(plus-sign quote space quote plus-sign)

Example of formula for right justifying a three field line:

{RIGHT(SPACE(n)+ALLTRIM(fieldname1)+" "+ALLTRIM(fieldname2)+" "+ALLTRIM(fieldname3), n)}

note: This only applies to character fields, see following formulas regarding using non-character fields. For a listing of Farm field types, etc. see Farm File Layout Techfax.

Text may be substituted for a field name, but must be enclosed in quotes (see next formula).


To right justify text only, use the following formula:

{RIGHT(SPACE(n)+ "Text to be right justified, enclosed in quotes", n)}


To right justify a numeric field, use the following formula:

{RIGHT(SPACE(n)+ALLTRIM(STR(numericfield)), n)}


To right justify a date field, use the following formula:

{RIGHT(SPACE(n)+DTOC(datefield), n)}


EXAMPLE of right justification:

The following example would right justify to column 63.

{RIGHT(SPACE(63)+ALLTRIM(TODAY), 63)}

{RIGHT(SPACE(63)+ALLTRIM(FIRST)+" "+ALLTRIM(ONR_NAME), 63)}

{RIGHT(SPACE(63)+ALLTRIM(SITE_ADD), 63)}

{RIGHT(SPACE(63)+ALLTRIM(SITE_CITY)+" "+ALLTRIM(SITE_ZIP), 63)}

{RIGHT(SPACE(63)+ "Just a little word from JOHN DOE REALTY.", 63)}

{RIGHT(SPACE(63)+"We last talked on "+DTOC(LAST_CONT)+" regarding your property",63)}

{RIGHT(SPACE(63)+"Your home was last assessed at $"+ALLTRIM(TRANS(ASSD_VAL,"999,999")),63)}

{RIGHT(SPACE(63)+"Because your home has "+ALLTRIM(STR(bedrooms))+" bedrooms , I like it!",63)}

{RIGHT(SPACE(63)+ "I could sell it fast!!!!", 63)}

and would layout like:

April 27, 1994

John E. Doe

118 W Smoe Dr.

Your Town, AZ 12345-6789

Just a little word from JOHN DOE REALITY.

We last talked on 04/15/93 regarding your property.

Your home was last assessed at $33,000

Because your home has 6 bedrooms, I like it!

I could sell it fast!!!! small office, home office, soho, soho software, real estate agent software, realtor software, mortgage broker software, real estate broker, real estate tax data software, tax roll data software, property data software, real estate property software, real estate database management software, real estate listing software, real estate software, real estate management, lending software, lender software, mortgage software, contact management, listing management, cma sofware, cma report software, closing management, escrow management, escrow software, closing software, closing manager, escrow manager, campaign manager, financial calculator, financial software, refinance software, refinancing software, loan qualification software, amortization software, scheduler software, scheduling software, real estate spreadsheet, settlement sheets, bulk mailing, client management, telemarketing software, real estate database software, mls software, multiple listing service software, scheduler, spreadsheet, settlement sheets, INSTANT IMPACT! GOLD, INSTANT IMPACT!, instant impact gold, Information Products, salesimpact, sales impact, the lenders edge, lenders edge, lender's edge, INSTANT IMPACT! GOLD, INSTANT IMPACT!, instant impact gold, Information Products, salesimpact, sales impact, the lenders edge, lenders edge, lender's edge