Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MAK MAK is offline
external usenet poster
 
Posts: 20
Default Save all codes in a plain text file

Dear all,
a macro has many sheets, forms and modules; and each one of them contains
some codings, i want to know how to save all the codings (inside the same
excel file) in one single txt file.
Would you pls help? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 464
Default Save all codes in a plain text file

Why not Export all Modules to your Hard Drive.



--
Regards
Dave Hawley
www.ozgrid.com
"Mak" wrote in message
...
Dear all,
a macro has many sheets, forms and modules; and each one of them contains
some codings, i want to know how to save all the codings (inside the same
excel file) in one single txt file.
Would you pls help? Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
MAK MAK is offline
external usenet poster
 
Posts: 20
Default Save all codes in a plain text file

Export all modules will create multiple text files. i had one excel file
with macros, it contains many sheets, forms and modules. i have made some
changes in codings and create a new excel file.
Two years late, there are several excel files, i want to know what exactly i
changes in the past 2 years and thus i am asking an easy way to output all
codes in an excel files to one single text file. Then I may compare these
several text file to find the difference in codings.
Thanks.

"ozgrid.com" wrote:

Why not Export all Modules to your Hard Drive.



--
Regards
Dave Hawley
www.ozgrid.com
"Mak" wrote in message
...
Dear all,
a macro has many sheets, forms and modules; and each one of them contains
some codings, i want to know how to save all the codings (inside the same
excel file) in one single txt file.
Would you pls help? Thanks.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Save all codes in a plain text file

Hmmm,

how about this:
1) export all modules of the excel file into one folder
2 ) from the command line (aka DOS Window)
COPY "c:\My_folder_with_the_text_files\*.*"
"c:\destination_Folder\Version1.txt"
this will combine all files into one file.
Repeat this for all excel files you want to compare.

Helmut.


"Mak" schrieb im Newsbeitrag
...
Export all modules will create multiple text files. i had one excel file
with macros, it contains many sheets, forms and modules. i have made some
changes in codings and create a new excel file.
Two years late, there are several excel files, i want to know what exactly i
changes in the past 2 years and thus i am asking an easy way to output all
codes in an excel files to one single text file. Then I may compare these
several text file to find the difference in codings.
Thanks.

"ozgrid.com" wrote:

Why not Export all Modules to your Hard Drive.




  #5   Report Post  
Posted to microsoft.public.excel.programming
MAK MAK is offline
external usenet poster
 
Posts: 20
Default Save all codes in a plain text file

Thanks but your method still require to export all modules individually (many
sheets, forms and modules) to a text file first, then merge them to one
single.

If there is no direct way to do so. Is it a good idea to write a new Excel
macro to search all sheets, forms and modules, see if any codes inside, if
yes then copy the codes and paste it in a NotePad?

But I don't know the code to search all sheets to see if any codes inside,
could you please help?
Thanks.


"Helmut Meukel" wrote:

Hmmm,

how about this:
1) export all modules of the excel file into one folder
2 ) from the command line (aka DOS Window)
COPY "c:\My_folder_with_the_text_files\*.*"
"c:\destination_Folder\Version1.txt"
this will combine all files into one file.
Repeat this for all excel files you want to compare.

Helmut.


"Mak" schrieb im Newsbeitrag
...
Export all modules will create multiple text files. i had one excel file
with macros, it contains many sheets, forms and modules. i have made some
changes in codings and create a new excel file.
Two years late, there are several excel files, i want to know what exactly i
changes in the past 2 years and thus i am asking an easy way to output all
codes in an excel files to one single text file. Then I may compare these
several text file to find the difference in codings.
Thanks.

"ozgrid.com" wrote:

Why not Export all Modules to your Hard Drive.




.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Save all codes in a plain text file

See Chip Pearson's site.

http://www.cpearson.com/excel/vbe.aspx

Scroll down about half way and see.........

Exporting A VBComponent Code Module To A Text File


Gord Dibben MS Excel MVP

On Thu, 29 Apr 2010 21:30:01 -0700, Mak
wrote:

Thanks but your method still require to export all modules individually (many
sheets, forms and modules) to a text file first, then merge them to one
single.

If there is no direct way to do so. Is it a good idea to write a new Excel
macro to search all sheets, forms and modules, see if any codes inside, if
yes then copy the codes and paste it in a NotePad?

But I don't know the code to search all sheets to see if any codes inside,
could you please help?
Thanks.


"Helmut Meukel" wrote:

Hmmm,

how about this:
1) export all modules of the excel file into one folder
2 ) from the command line (aka DOS Window)
COPY "c:\My_folder_with_the_text_files\*.*"
"c:\destination_Folder\Version1.txt"
this will combine all files into one file.
Repeat this for all excel files you want to compare.

Helmut.


"Mak" schrieb im Newsbeitrag
...
Export all modules will create multiple text files. i had one excel file
with macros, it contains many sheets, forms and modules. i have made some
changes in codings and create a new excel file.
Two years late, there are several excel files, i want to know what exactly i
changes in the past 2 years and thus i am asking an easy way to output all
codes in an excel files to one single text file. Then I may compare these
several text file to find the difference in codings.
Thanks.

"ozgrid.com" wrote:

Why not Export all Modules to your Hard Drive.




.


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
Plain .TXT file to Word .DOC file via Excel VBA - Possible? Charlotte E.[_2_] Excel Programming 2 December 4th 08 04:49 AM
Import word file into excel as plain text Nick Excel Discussion (Misc queries) 1 June 23rd 08 04:22 PM
Excel VBA - open text file, replace text, save file? Cybert Excel Programming 2 October 2nd 04 01:05 AM
send contents of cell b4 to a plain text file lothario[_68_] Excel Programming 5 January 22nd 04 09:37 AM
Save As - Multiple Sheets fails to save as text file Ravee Srinivasan Excel Programming 2 November 10th 03 04:05 PM


All times are GMT +1. The time now is 06:57 AM.

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

About Us

"It's about Microsoft Excel"