RossWindows
Que?
- Local time
- Today, 04:06
- Joined
- Feb 25, 2008
- Messages
- 410
First time writing VB in excel.
If I had a range of cells that should never be Null,
How would I write VB to test that and change the cell value back to "0" if the user hits delete on the cell?
i.e. Cells D9 through D28 should never be null, so if the user hit delete on D13 for instance, how would I write VB to change that cell to "0" instead of null?
I'm guessing I should use the AfterUpdate() event of something... but should that be on the workbook or the sheet?
Just point me in the right direction and I could probably figure out the rest.
Thanks!
If I had a range of cells that should never be Null,
How would I write VB to test that and change the cell value back to "0" if the user hits delete on the cell?
i.e. Cells D9 through D28 should never be null, so if the user hit delete on D13 for instance, how would I write VB to change that cell to "0" instead of null?
I'm guessing I should use the AfterUpdate() event of something... but should that be on the workbook or the sheet?
Just point me in the right direction and I could probably figure out the rest.
Thanks!
Last edited: