Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Need to compare code in multiple modules to a master copy

Hello,

I've been given the task to automate vb code comparison from a new workbook
version to a "master copy."

For instance: Master Copy has 16 Modules in the vb project.

Someone makes changes to the code (in a different file) and asks that the
quality control guy accept it. Changes could have been made in any one or
all modules.

We need to see where the changes were made by comparing to the master copy.

If I can get all the modules from the master copy and then the new copy into
a Word document, I think we have a program that can highlight differences.

Any ideas/solutions appreciated.

Thanx

dave


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 340
Default Need to compare code in multiple modules to a master copy

Dave, why not copy the code in the master from a module into a worksheet
starting in A1. And the new code for that module into C1. And in B1, put
the equation A1=C1 and copy down. When different, the values turn to false.

Robert Flanagan
Macro Systems
Delaware, U.S. 302-234-9857
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Dave" wrote in message
...
Hello,

I've been given the task to automate vb code comparison from a new

workbook
version to a "master copy."

For instance: Master Copy has 16 Modules in the vb project.

Someone makes changes to the code (in a different file) and asks that the
quality control guy accept it. Changes could have been made in any one or
all modules.

We need to see where the changes were made by comparing to the master

copy.

If I can get all the modules from the master copy and then the new copy

into
a Word document, I think we have a program that can highlight differences.

Any ideas/solutions appreciated.

Thanx

dave




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Need to compare code in multiple modules to a master copy

Another option would be to extract the modules to text files.

Then use MSWord's built in Tools|compare and merge documents.

(Depending on how big the modules are, it might work!)



Dave wrote:

Hello,

I've been given the task to automate vb code comparison from a new workbook
version to a "master copy."

For instance: Master Copy has 16 Modules in the vb project.

Someone makes changes to the code (in a different file) and asks that the
quality control guy accept it. Changes could have been made in any one or
all modules.

We need to see where the changes were made by comparing to the master copy.

If I can get all the modules from the master copy and then the new copy into
a Word document, I think we have a program that can highlight differences.

Any ideas/solutions appreciated.

Thanx

dave


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Need to compare code in multiple modules to a master copy

Sounds like they need Version Control software. I don't know if there's
anything available that will work with VBA code without the need to export it
to text files, though.

On Tue, 16 Nov 2004 20:17:39 -0600, Dave Peterson
wrote:

Another option would be to extract the modules to text files.

Then use MSWord's built in Tools|compare and merge documents.

(Depending on how big the modules are, it might work!)



Dave wrote:

Hello,

I've been given the task to automate vb code comparison from a new workbook
version to a "master copy."

For instance: Master Copy has 16 Modules in the vb project.

Someone makes changes to the code (in a different file) and asks that the
quality control guy accept it. Changes could have been made in any one or
all modules.

We need to see where the changes were made by comparing to the master copy.

If I can get all the modules from the master copy and then the new copy

into
a Word document, I think we have a program that can highlight differences.

Any ideas/solutions appreciated.

Thanx

dave


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Need to compare code in multiple modules to a master copy

That is basically what I want to do - copy all the modules into a
spreadsheet or Word document. Problem is how to copy all the modules
quickly. There are over 20 modules each containing multiple Functions and
Sub routines.

Can I write code to do this? The Quality Control guys just wants to hit a
button and have it all there for him.

thanx dave

"Bob Flanagan" wrote in message
...
Dave, why not copy the code in the master from a module into a worksheet
starting in A1. And the new code for that module into C1. And in B1, put
the equation A1=C1 and copy down. When different, the values turn to

false.

Robert Flanagan
Macro Systems
Delaware, U.S. 302-234-9857
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Dave" wrote in message
...
Hello,

I've been given the task to automate vb code comparison from a new

workbook
version to a "master copy."

For instance: Master Copy has 16 Modules in the vb project.

Someone makes changes to the code (in a different file) and asks that

the
quality control guy accept it. Changes could have been made in any one

or
all modules.

We need to see where the changes were made by comparing to the master

copy.

If I can get all the modules from the master copy and then the new copy

into
a Word document, I think we have a program that can highlight

differences.

Any ideas/solutions appreciated.

Thanx

dave






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
compare s/s and create master s/s Little pete Excel Discussion (Misc queries) 0 January 23rd 07 12:05 AM
Delete Code Modules Programatically blatham Excel Discussion (Misc queries) 1 February 3rd 06 05:38 PM
editing code in modules through VB mark Excel Programming 2 August 12th 04 05:20 PM
Remove code from all modules closes Excel Stuart[_5_] Excel Programming 0 June 30th 04 06:22 PM
How to Compare Workbook VBA modules Dan[_26_] Excel Programming 2 October 16th 03 12:59 PM


All times are GMT +1. The time now is 01:04 PM.

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"