tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
I need a macro that when its run will do the following
with active sheet
ceck there is a number in cell AK28, if not message box "Please enter a Number of Days"
exit
if there is then
Look at the range AK32:AK47
with each cell check if they have a value in them and that the next column has "no" in it.
only if both of these are correct increase the value in the cell by the number in AK28
so for example
AK28 = 30
AK33 = 100 & AL33 = "No" so Increase AK33 by 30 so AK33 =130
do this for all cells in the range but only if they match the above criteria otherwise leave how they are.
please help
Thanks
Tony
I need a macro that when its run will do the following
with active sheet
ceck there is a number in cell AK28, if not message box "Please enter a Number of Days"
exit
if there is then
Look at the range AK32:AK47
with each cell check if they have a value in them and that the next column has "no" in it.
only if both of these are correct increase the value in the cell by the number in AK28
so for example
AK28 = 30
AK33 = 100 & AL33 = "No" so Increase AK33 by 30 so AK33 =130
do this for all cells in the range but only if they match the above criteria otherwise leave how they are.
please help
Thanks
Tony