Hi, Brett,
What's wrong with the name is that macro names aren't allowed to
contain spaces, or any other character except letters, numbers, and
underscores. You can either replace each space with an underscore:
Sub Remove_space_between_paragraphs_and_indent_first_line()
or you can squeeze out all the spaces and capitalize each word:
Sub RemoveSpaceBetweenParagraphsAndIndentFirstLine()
The maximum length of a macro name is 80 characters.
To answer your question in another branch of this thread, you were
replacing the paragraph marks after setting the indents, and Word was
removing the indents. This is because all paragraph formatting --
including indents -- is stored inside the paragraph marks. You're
replacing paragraph marks that contain indents with new paragraph
marks that don't contain indents. The easiest solution is to do the
operations in the reverse order -- replace first, then indent.
A better solution is to define a paragraph style that has the indent,
plus any other spacing or other paragraph formatting you want, and
then simply apply the style to the paragraphs that should be indented.