printing VB macros

S

Slowconn

Is there any way (i.e., a macro or builtin) to print all the macros in a VB
project? Or to copy them to a Word file? (Particularly where there are many
modules and it’s a bit of a pain to copy and paste all the modules into Word
manually.) I’m using Word 2003 at the office, but Word 97 at home.
 
K

Karl E. Peterson

Slowconn said:
Is there any way (i.e., a macro or builtin) to print all the macros in a VB
project? Or to copy them to a Word file? (Particularly where there are many
modules and it’s a bit of a pain to copy and paste all the modules into Word
manually.) I’m using Word 2003 at the office, but Word 97 at home.

Maybe use a code cleaner[1] to export all the modules, then load'em up and print'em
from somewhere?

[1] http://word.mvps.org/FAQs/MacrosVBA/TemplateBloat.htm

IOW, I'm not sure you can fully automate this, but you can get a bit beyond
cut/paste.
 
K

Karl E. Peterson

David Sisson said:
From Word, F11, File -> Print, Select 'Current Project'. Let'er rip!

Huh. Just goes to show ya... I guess I haven't printed source code, or at least
entire projects, since the days of DOS. <g>
 
S

Slowconn

Karl, that's very interesting. The code-cleaner macros are protected, but
there must be a programmatic way of exporting all macros in a project.
Thanks!

Karl E. Peterson said:
Slowconn said:
Is there any way (i.e., a macro or builtin) to print all the macros in a VB
project? Or to copy them to a Word file? (Particularly where there are many
modules and it’s a bit of a pain to copy and paste all the modules into Word
manually.) I’m using Word 2003 at the office, but Word 97 at home.

Maybe use a code cleaner[1] to export all the modules, then load'em up and print'em
from somewhere?

[1] http://word.mvps.org/FAQs/MacrosVBA/TemplateBloat.htm

IOW, I'm not sure you can fully automate this, but you can get a bit beyond
cut/paste.
 
K

Karl E. Peterson

Slowconn said:
Karl, that's very interesting. The code-cleaner macros are protected, but
there must be a programmatic way of exporting all macros in a project.

Indeed there is. The code-cleaner does just that! <g>
 

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