Billdub417
New Member
- Joined
- Nov 5, 2019
- Messages
- 45
Hello,
Some help with a code please...
I have set up the below sheet showing quantities of different items.
There is a button (offscreen) that exports this list - I would like to add a message box that, when exporting this list, alerts for any negative figures in the period listed (i.e. in this case, period 9 = September, so the message box would say something like:
Error: Negative Values:
Pears: -1
Bananas: -4
Would you like to continue? Yes / NO
is this possible? VV Many thanks!
Some help with a code please...
I have set up the below sheet showing quantities of different items.
There is a button (offscreen) that exports this list - I would like to add a message box that, when exporting this list, alerts for any negative figures in the period listed (i.e. in this case, period 9 = September, so the message box would say something like:
Error: Negative Values:
Pears: -1
Bananas: -4
Would you like to continue? Yes / NO
is this possible? VV Many thanks!
Sample.xlsx | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | |||
1 | |||||||||||||||
2 | |||||||||||||||
3 | 31/01/2021 | 28/02/2021 | 31/03/2021 | 30/04/2021 | 31/05/2021 | 30/06/2021 | 31/07/2021 | 31/08/2021 | 30/09/2021 | 31/10/2021 | 30/11/2021 | 31/12/2021 | |||
4 | Apples | 0 | 2 | -3 | -4 | 5 | -2 | 3 | 5 | 1 | -5 | -1 | -3 | ||
5 | Pears | 6 | 1 | 4 | 6 | -2 | 6 | -1 | 2 | -1 | 3 | -3 | 4 | ||
6 | Bananas | 0 | 1 | 0 | 3 | -2 | -5 | 2 | 6 | -4 | 1 | 2 | 6 | ||
7 | |||||||||||||||
8 | |||||||||||||||
9 | |||||||||||||||
10 | Month | Period 9 | |||||||||||||
Sheet1 |