L
Laura
hi!
With a text document, i have to give format to the paragraphs depending on
the first character of every one.
(if first character of the paragraph is a 'p' then-->paragraph bold,....
if first character of the paragraph is a 'd' then --> paragraph italic,... )
I'm programming a macro that uses the mail merge to filter an specific letter.
To know the correct order of the paragraphs, I do this:
For i = 1 To numParrafos
ActiveDocument.Paragraphs(i).Range.Select
Selection.HomeKey Unit:=wdLine
Selection.TypeText (i & "*")
Selection.MoveLeft Unit:=wdCharacter, Count:=1
……..
Next i
But when I get the output document, and I order in alphabetical order, I get
an undesired order (because take the numbers as text).
Is there any way to convert a text-field to number-field?
If don’t: do you know any way to resolved the problem?
Thank you
With a text document, i have to give format to the paragraphs depending on
the first character of every one.
(if first character of the paragraph is a 'p' then-->paragraph bold,....
if first character of the paragraph is a 'd' then --> paragraph italic,... )
I'm programming a macro that uses the mail merge to filter an specific letter.
To know the correct order of the paragraphs, I do this:
For i = 1 To numParrafos
ActiveDocument.Paragraphs(i).Range.Select
Selection.HomeKey Unit:=wdLine
Selection.TypeText (i & "*")
Selection.MoveLeft Unit:=wdCharacter, Count:=1
……..
Next i
But when I get the output document, and I order in alphabetical order, I get
an undesired order (because take the numbers as text).
Is there any way to convert a text-field to number-field?
If don’t: do you know any way to resolved the problem?
Thank you