Changing macro description via VBA

L

Larry

I know it's possible to return the description of a named macro, like
this:

Selection.TypeText WordBasic.MacroDesc$("AAATests")

But is it possible, not just to return the description, but to change
it, using something like this:

X = Selection.Text
WordBasic.MacroDesc$("AAATests") = X

Larry
 
D

Dave Lett

Hi Larry,

You can probably use something like the following:

With Selection
.HomeKey unit:=wdStory
With .Find
.ClearFormatting
.text = "^p"
.Font.Bold = True
With .Replacement
.text = ""
.Font.Bold = False
End With
.Execute Replace:=wdReplaceAll
End With
End With

HTH
 

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