home *** CD-ROM | disk | FTP | other *** search
- Option Public
- Sub Main
-
-
- 'Declare and set variables for Current Application,Text,and Preferences
-
- Dim Ca As WPApplication
- Dim Catxt As Text
- Dim Caprf As Preferences
-
- Set Ca = CurrentApplication
- Set Catxt = CurrentApplication.Text
- Set Caprf = CurrentApplication.Preferences
-
- 'Move to the end of the document
-
- Call Catxt.MoveToEnd ($LwpLocationTypeDocument)
-
- 'Insert a line break and go to the next line
-
- Call Catxt.InsertBreak ($LwpBreakTypeLine)
-
- ' Set current text to a larger script font
-
- Catxt.Font.WindowsName = "Brush Script"
- Catxt.Font.Size = 16
-
- ' Output name
- '
- Call Ca.Type (Caprf.Username)
-
- ' Set current text to a smaller plain font
-
- Catxt.Font.WindowsName = "Arial"
- Catxt.Font.Size = 10
-
-
- ' Output title & Company
-
- Call Catxt.InsertBreak ($LwpBreakTypeLine)
-
- If (Caprf.Title <> "") Then
- Call Ca.Type (Caprf.Title + ", ")
- End If
-
- Call Ca.Type (Caprf.Company)
-
- ' If phone is available, put on next output line
-
- If (Caprf.PhoneNumber <> "") Then
-
- Call Catxt.InsertBreak ($LwpBreakTypeLine)
- Call Ca.Type ("Phone: " + Caprf.PhoneNumber)
-
- End If
-
- ' If fax is available, put on next output line
-
- If (Caprf.FaxNumber <> "") Then
-
- Call Catxt.InsertBreak ($LwpBreakTypeLine)
- Call Ca.Type ("Fax: " + Caprf.FaxNumber)
-
-
- End If
-
-
- ' If electronic mail address is available, put on next output line
-
- If (Caprf.Email <> "") Then
-
- Call Catxt.InsertBreak ($LwpBreakTypeLine)
- Call Ca.Type ("E-mail: " + Caprf.Email)
-
- End If
-
- End Sub
-