Hello everyone,
My first time posting on this forum so please excuse any mistakes I make.
I have created a macro button to move from one sheet to another in an excel document but I want also want the button to check to see if multiple ranges of cells have values, if they don't then pop up a message and don't run the rest of the macro. I have not used vba much at all so if someone can help i would much appreciate it. Below is basically what I want to say but not in a vba format.
If the cell range (B2:B16), (E2:E6) and (E10:E15) from a sheet called Student calculator contains any values, then continue onto the sheet called Student calculator Results. If any of the cells do not contain a value, then return a message box saying "error - all information has not been inputted" and do not continue onto the other sheet.
Also if I wanted to choose a cell range from another sheet, how would i go about doing this?
Thanks in advance
My first time posting on this forum so please excuse any mistakes I make.
I have created a macro button to move from one sheet to another in an excel document but I want also want the button to check to see if multiple ranges of cells have values, if they don't then pop up a message and don't run the rest of the macro. I have not used vba much at all so if someone can help i would much appreciate it. Below is basically what I want to say but not in a vba format.
If the cell range (B2:B16), (E2:E6) and (E10:E15) from a sheet called Student calculator contains any values, then continue onto the sheet called Student calculator Results. If any of the cells do not contain a value, then return a message box saying "error - all information has not been inputted" and do not continue onto the other sheet.
Also if I wanted to choose a cell range from another sheet, how would i go about doing this?
Thanks in advance