
How to list macro names in a combo box or a list
Thank you Vladmir,
Following your tip, I solved the problem with this sample macro:
WD2000: Macro Example to Return Macro and Procedure Names (Q262961)
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q262961
[],
Edson Furman
Quote:
> You have to add the reference to VBIDE type library ("Microsoft Visual
Basic
> for Application Extensibility") in your VBA-project and make some
> programming with its objects.
> With best regards,
> Vladimir Korol
> > Hi everyone,
> > Is there someone who knows how to list macro names in a combo box or a
> list
> > box?
> > For example, with the code below I can list all my style names in a
combo
> > box:
> > Private Sub UserForm_Initialize()
> > For Each sty In ActiveDocument.Styles
> > ComboBox1.AddItem (sty)
> > Next sty
> > Next Sub
> > How to do the same with macro names?
> > Thank you all in advance.
> > Edson Furman