Share via

how to convert a number into a word

Anonymous
2011-08-04T10:46:47+00:00

Is there any kind of command that I may use to convert a number into a word

for example :

8 eight

10  ten

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Anonymous
    2011-08-04T11:48:59+00:00

    There is no formatting toggle like the Switch Case command, but within Word's fields there are formatting options for cardtext and dollartext. These can be created on-the-fly without resorting to Insert, Quick Parts, Field.

    1. On a new line press Ctrl+F9. This will insert a set of field braces (e.g. { and }).
    2. Type the following into the braces so it looks like this,

          { =123 \* cardtext }  ... and then move the cursor outside the braces. 3. Press Ctrl+A (e.g. Select All) and then tap F9 (e.g. Update fields)

    You should have one hundred twenty-three on your document.

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2011-08-04T12:27:11+00:00

    To implement Jeeped's suggestion quickly, select the number and run the following macro.

    Dim oRng As Range

    Set oRng = Selection.Range

    If IsNumeric(oRng) Then

        oRng.Fields.Add oRng, _

                        Type:=wdFieldExpression, _

                        Text:=oRng.Text & " \*Cardtext", _

                        Preserveformatting:=False

        oRng.Fields.Update

        ActiveWindow.View.ShowFieldCodes = False

    Else

        MsgBox "Select a number first!", _

               vbCritical, _

               "Convert number to text"

    End If

    0 comments No comments