I am interested in VBA code that could do the following two things to my multi worksheet workbook:
PART 1. color code cells that are used as "imports"
I would like to go through each worksheet, cell by cell, and in any cell where there is a reference to another worksheet, I would like to change the font color to blue. for example, if I am on a worksheet named "outputs" and cell B1 contians the formula =Inputs!E25, then the font for this cell should be blue. The macro should be able to change the interior color to blue
PART 2. color code cells that are used as "exports".
This is probably a bit trickier, but here what I would like to do is to go through each worksheet, cell by cell, and in any cell where the value is used as an input on another worksheet (the reverse of the above PART 1), I would like to change the font color to red. So, using the example above on the input worksheet, cell E25 should be colored red.
I realize this may be difficult to do, particularly PART 2. Any help would be greatly appreciated!
Thanks.
PART 1. color code cells that are used as "imports"
I would like to go through each worksheet, cell by cell, and in any cell where there is a reference to another worksheet, I would like to change the font color to blue. for example, if I am on a worksheet named "outputs" and cell B1 contians the formula =Inputs!E25, then the font for this cell should be blue. The macro should be able to change the interior color to blue
PART 2. color code cells that are used as "exports".
This is probably a bit trickier, but here what I would like to do is to go through each worksheet, cell by cell, and in any cell where the value is used as an input on another worksheet (the reverse of the above PART 1), I would like to change the font color to red. So, using the example above on the input worksheet, cell E25 should be colored red.
I realize this may be difficult to do, particularly PART 2. Any help would be greatly appreciated!
Thanks.