Hi,
i am trying to write some code in VBA that says when a button is click check if cell L49 is populated with the value yes then Cells L52,L55,L58 will each needs to be populated, if they are empty I need a message box to appear, if the Cell L49 doesn't say yes the script can end at that stage.
so something like:
on_click()
if range("L49").value = "yes" then
range("L52").value = "" is true
msgbox "Please enter a value"
then repeat this for them all, i know this doesn't work but just to help make clear what i'm asking
i am trying to write some code in VBA that says when a button is click check if cell L49 is populated with the value yes then Cells L52,L55,L58 will each needs to be populated, if they are empty I need a message box to appear, if the Cell L49 doesn't say yes the script can end at that stage.
so something like:
on_click()
if range("L49").value = "yes" then
range("L52").value = "" is true
msgbox "Please enter a value"
then repeat this for them all, i know this doesn't work but just to help make clear what i'm asking

Last edited: