Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modules to Text. Help.

Status
Not open for further replies.

thebernieb

Programmer
Jun 6, 2001
15
US
I'm looking for a way to send all modules to a text file. I can accomplish this pretty easily with documents container for stand-alone modules, but class modules are a different issue. Any suggestions?

Also, anyone know of any programs that format VB code from text files to MS Word or HTML with color and indents? I've been thinking of writing an MS Word module to do this, but really don't feel like spending the time. Let me know.

Thanks,
Bernie
 
You can try something along the lines of:

For each x in Activeworkbook.VBProject.VBComponents
y = x.Name
z = "C:\" & y & ".txt"
x.export z
Next x

This will catch modules, classes & worksheet objects
Store300

Store300@ftnetwork.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top