Hi harryco79,
Try the attached file that contains the following code. I added the following rules which can be changed if they do not suit your needs:
a. Only one cell in column D is allowed to have a thick Black Border.
b. If there are no cells in Column D with a Thick Border, the Thick Border is removed from Cell 'A1'.
c. D1, D23, D50, or D70 MUST be NON-BLANK in order to have a red border created around Cell 'A1'.
d. Cell 'A1' MUST be NON-BLANK in order to have a red border created.
NOTE: Excel has a 31 character limitation on Sheet Names.
In the Sheet1 code module:
In an ordinary code module such as Module1 or ModCloneSheet2:
Lewis
NOTE: The attached file does NOT work in Excel 2010. See the file associated with post #9 in this thread for a file that works in Excel 2003 and Excel 2010.
Bookmarks