In the range B3:B1000 most of the cells are empty. B3 always has a value. Some cells in…
Jump to turn (7)
- 1In the range B3:B1000 most of the cells are empty. B3 always has a value. Some c
- 2The code accurately determines what the value is in B3. It pops up a message sta
- 3The code accurately determines what the value is in B3. It pops up a message sta
- 4The code accurately determines what the value is in B3. It pops up a message sta
- 5The code accurately determines what the value is in B3. It pops up a message sta
- 6The code accurately determines what the value is in B3. It pops up a message sta
- 7The code accurately determines what the value is in B3. It pops up a message sta
- User
In the range B3:B1000 most of the cells are empty. B3 always has a value. Some cells in the range have values. The values in the range follow a repeating pattern. The pattern is derived from a repeating series of values in this order; Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. If the value in B3 is Sunday, then the next value in the range will be Monday. If the value in B3 is Thursday, then the next value in the range will be Friday. I want a VBA code that will determine the value in B3, then pop up a message and state the next expected value in the message. The code will then find the next cell that should contain the next expected value and when the non-empty cell is found, pop up a message and state the next expected value in the message. The code must loop down the range looking for non-empty cells until it gets to B1000. If the code finds a cell and the value in it is not the expected value, then the pop-up message must state error found and the loop should stop. Please write a VBA code to do this.
- Assistant