Bagharmin
Board Regular
- Joined
- Nov 22, 2010
- Messages
- 168
I have two cells that my code cannot seem to affect at all. The ONLY bit of code in my entire Sub that does anything with these two cells is below:
My code refers to nearly all the cells around those two in the same fashion (i.e., Range("B7").Value, Range("D5").Value, etc.) and changes their values in the way I intended, but my code can't touch B5 or B6. I can type in the cells manually and the values will NEVER change when I run the code. The cells aren't locked and the sheet isn't protected. I've even stepped through the code to verify that Dateone and Datetwo have actual valid values (they do), but nothing I do will make those values show in those two cells. Grrr.
I'm at my wit's end. Does anyone have any sort of suggestions or insight on what might be causing this?
Code:
Range("B5").Value = Application.WorksheetFunction.Text(Dateone, "##/##/####")
Range("B6").Value = Application.WorksheetFunction.Text(Datetwo, "##/##/####")
My code refers to nearly all the cells around those two in the same fashion (i.e., Range("B7").Value, Range("D5").Value, etc.) and changes their values in the way I intended, but my code can't touch B5 or B6. I can type in the cells manually and the values will NEVER change when I run the code. The cells aren't locked and the sheet isn't protected. I've even stepped through the code to verify that Dateone and Datetwo have actual valid values (they do), but nothing I do will make those values show in those two cells. Grrr.
I'm at my wit's end. Does anyone have any sort of suggestions or insight on what might be causing this?