Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 425
Default List all code in workbook?

Is there are code that would allow me to list all codes within a
workbook?

I need all of the actual codes (sub, private subs, worksheet/workbook
change events, etc).

I found several that just lists names of them all. However, I want the
entire code.

I am trying to create a backup list of all of my codes that i've
gathered, solicited, and or created over the years from various
workbooks.

Perhaps copying them directly to word or notepad would be a good
option.


Thanx
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default List all code in workbook?

Why not just export the modules into a library folder on your harddrive???


J.W. Aldridge wrote:
Is there are code that would allow me to list all codes within a
workbook?

I need all of the actual codes (sub, private subs, worksheet/workbook
change events, etc).

I found several that just lists names of them all. However, I want the
entire code.

I am trying to create a backup list of all of my codes that i've
gathered, solicited, and or created over the years from various
workbooks.

Perhaps copying them directly to word or notepad would be a good
option.


Thanx



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 425
Default List all code in workbook?

Charlotte,

If you have details on how to, I'd try it.


Thanx Nigel,
That gets me off the ground.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default List all code in workbook?

If you copy them to Word, I suggest doing it in plain text, otherwise you
will have a big formatting problem to get your indents and line wraps
straightened out. If you copy to Notepad, the indents are pretty much
maintained but line wrap can also be a pain there. I saw some code somewhere
that copied the main module procedures, but I don't recall seeing any that
would pick up forms' and controls' underlying codes. It doesn't take that
long to copy anyhow. Useer forms and controls will take the most time. The
project module and sheet modules are a snap.

"J.W. Aldridge" wrote:

Is there are code that would allow me to list all codes within a
workbook?

I need all of the actual codes (sub, private subs, worksheet/workbook
change events, etc).

I found several that just lists names of them all. However, I want the
entire code.

I am trying to create a backup list of all of my codes that i've
gathered, solicited, and or created over the years from various
workbooks.

Perhaps copying them directly to word or notepad would be a good
option.


Thanx



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default List all code in workbook?


Charlotte Wrote:
Why not just export the modules into a library folder on your
harddrive???

J.W. Wrote:
Charlotte,

If you have details on how to, I'd try it.

If you use 'VBA Code Cleaner'
(http://www.appspro.com/Utilities/CodeCleaner.htm), it will save all the
modules in a file you specify. You can open them in Notepad (or anything
else) and print them. And you get your VBA project cleaned in the
process.

Remember to set a fixed-pitch font before printing.


--
shg
------------------------------------------------------------------------
shg's Profile: http://www.thecodecage.com/forumz/member.php?userid=13
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=25598

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default List all code in workbook?

Just right-click on a Module, and 'Export'

This will save the VBA code as a simple text-file with the suffix .BAS.


CE


J.W. Aldridge wrote:
Charlotte,

If you have details on how to, I'd try it.


Thanx Nigel,
That gets me off the ground.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Code to List all Sheets and Charts in a Workbook rmellison Excel Programming 1 August 25th 08 12:02 PM
Code to automatically sort a list, each time that a new entry isadded to the bottom of the list Mike C[_5_] Excel Programming 5 April 13th 08 04:59 PM
Code to change code in a sheet and workbook module Otto Moehrbach Excel Programming 11 November 11th 07 07:20 PM
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
Code to Advance filter a list in a shared workbook ram Excel Programming 2 January 10th 06 02:46 AM


All times are GMT +1. The time now is 01:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"