Color different people's source code

jencajenca

New Member
Joined
Jan 25, 2009
Messages
8
Hi!

I am wondering if there is any good way of coloring different sections of the source code in excel to show what different programmers have added?

Thanks for the help!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
True, i was mostly wondering if there was a color i could use for when i added new changes, so they would be easily seen. But i guess i just have to add a searchable key word in a comment then. Thanks for the help though!
 
Upvote 0
The Track Changes Option in Excel will show all changes made and highlight them on the sheet, if by code you mean VBA macro code then no!

Turn on change tracking for a workbook

  1. On the Tools menu, click Share Workbook, and then click the Editing tab.<LI class=LPROC>Select the Allow changes by more than one user at the same time check box. <LI class=LPROC>Click the Advanced tab. <LI class=LPROC>Under Track changes, click Keep change history for, and in the Days box, type the number of days of the change history that you want to keep. Be sure to enter a large-enough number of days because Microsoft Excel permanently erases any change history older than this number of days.
  2. Click OK, and if prompted to save the file, click OK.
Note Turning on change tracking also shares the workbook. </INPUT>
 
Last edited:
Upvote 0
jencajenca

How would colouring the code make it be easily seen who altered/created it?

You can change the colour coding for code but not for individual sections of code.

And even if you could I think you'd end up actually making itharder to follow and/or harder to read.:eek:

Also if you have multiple people creating/altering code, and you want to colour each alteration/whatever you could end up with some sort of 'rainbow' effect.

Now, personally, I would regard that as just confusing and probably cause a few headaches.:)
 
Upvote 0
Yeah, i see your point, although i was more so thinking "old code - black, new code - red until the programmers gone through it together and accepted the changes".
 
Upvote 0
You could make 2 different modules:
"Accepted"
"Under Review"

And then have those functions called from wherever needed, then copy-pasted to the new location after review. That would keep the code distinct, though it may not work for 100% of items.
 
Upvote 0
Im curious if on this same topic, Conditional Formatting can take into consideration the Date in which that cell was last modified?

eg: Track Changes does show the last change to the cell with a date and time.

Can Conditional Formatting be used for the cell color based on date the cell was last modified? Perhaps this is what he seeks?
 
Upvote 0
Im curious if on this same topic, Conditional Formatting can take into consideration the Date in which that cell was last modified?

eg: Track Changes does show the last change to the cell with a date and time.

Can Conditional Formatting be used for the cell color based on date the cell was last modified? Perhaps this is what he seeks?
The OP want's to highlight changes in VBA code not changes on a worksheet.:)
 
Upvote 0
Good idea with the modules, i'll give it a try, thanks! And yes, i did mean changes in the code, not the cells :)

//Jenny
 
Upvote 0

Forum statistics

Threads
1,213,558
Messages
6,114,297
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top