Completely new to VBA (always just used Excel functions before)
I have added a button to a worksheet, which I have added the macro to.
The macro needs to validate the cells in cols A to E of the last data row. If fails validation then bring-up a warning message.
The problem I am having is with validating the following:
Cols C and D both formatted as currency, and can contain either a positive value or blank, however only one of the two can contain a value, the other must be blank.
Any help would be appreciated.
Thanks
I have added a button to a worksheet, which I have added the macro to.
The macro needs to validate the cells in cols A to E of the last data row. If fails validation then bring-up a warning message.
The problem I am having is with validating the following:
Cols C and D both formatted as currency, and can contain either a positive value or blank, however only one of the two can contain a value, the other must be blank.
Any help would be appreciated.
Thanks