Macro difficulty for Word 97

J

Jack

I am not well versed in Word Basic.

I've been trying to create a new macro for the Normal template in Word 97 --
Replace Double Manual Line Breaks with Double Paragraph Marks =
ReplaceDblMLBwDblParaMarks.

I've actually done it -- but not like I want. That is, it works, but not
with the name I want for it.

Somehow, I wound up with the name "NewMacros.MAIN" -- which works only after
editing to eliminate any comment and description area of the macro. Here
it is:

Public Sub MAIN()
WordBasic.EditReplace Find:="^l^l", Replace:="^p^p", Direction:=0,
MatchCase:=0, WholeWord:=0, PatternMatch:=0, SoundsLike:=0, ReplaceAll:=1,
Format:=0, Wrap:=2, FindAllWordForms:=0
End Sub

BUT, If I try to create a new macro with the name
"ReplaceDblMLBwDblParaMarks" Word Basic opens with

Public Sub MAIN()
WordBasic.EditReplace Find:="^l^l", Replace:="^p^p", Direction:=0,
MatchCase:=0, WholeWord:=0, PatternMatch:=0, SoundsLike:=0, ReplaceAll:=1,
Format:=0, Wrap:=2, FindAllWordForms:=0
End Sub
_________________________________________

Sub ReplaceDblMLBwDblParaMarks()
'
' ReplaceDblMLBwDblParaMarks Macro
' Replace double manual line breaks with double paragraph marks
'

End Sub

AND THIS DOES NOT WORK FOR SOME REASON!!!


QUESTION # 1

How do I change the name from "NewMacros.MAIN" to
"ReplaceDblMLBwDblParaMarks"?


QUESTION # 2

Why does the macro which I created under the name
"ReplaceDblMLBwDblParaMarks" NOT work?


Jack
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top