Hello Charles....
Sorry it took me so long to get back to you.
I attached your latest code to the end of my SORT macro...and it worked exactly as planned.
In your last reply, you stated:
This was exactly the case...and something that had to be corrected, since the names in the cells on Sheet 1 were constantly being changed each time the SORT macro was run.If neither is found the sheet1 name will remain without color.(unless you added a name on sheet1 that had the cell fromatted for either cat. and that name was not in sheet2 the color will remain)
My simple solution was to add the following code AHEAD of your code...to clear the formatting prior to your code's execution.
The unfortunate side effect of all of this...??? ...My SORT macro now takes longer to run...(about 10-12 seconds).![]()
Range("A1:AA200").Select With Selection.Font .FontStyle = "Regular" Selection.Interior.ColorIndex = xlNone End With
Since I have ScreenUpdating set to FALSE on the macro...I now need to figure out how to attach a STATUS BAR to the macro so that the user doesn't feel like nothing is happening, or that the program has hung.
Going to get to work on that, right now.![]()
![]()
Thanks a bunch for your help with this.![]()
I've learned a great deal more about VBA from this exercise.![]()
Bookmarks