I am running into a problem when I try to call out a string that I previously defined in the .formula property. Below is just part of the code. I define Replen to be one of 12 numbers.
The line in the code: .Formula = "=IF(And(A2=Replen), B2<(today()+7)), C2+C3, C3)" is what is giving me problems. I am able to get the code to work if I use an an OR statement embedded in the code listing all 12 items. The reason I dont' want to do that is because this list needs to be updated from time to time and I would have to update it in multiple places in the rest of the code.
Bookmarks