kendiryakuphan
New Member
- Joined
- Jul 13, 2022
- Messages
- 2
- Office Version
- 2019
- Platform
- Windows
Hi there,
For my accounting homework, I need to construct a balance sheet in excel. As you may know, Total Assets should be equal to the sum of Total Liabilities and Equities. At the bottom, I have 2 cells, one of them represents the sum of asset items, whereas the other represents the sum of all liability and equity items.
I would like generate a macro, that verifies that 2 cells are equal to each other in terms of number. And if those 2 cells are not equal, it should not enable the user to close the excel or save the excel.
I am completely new to macros and have no idea how to satisfy that condition.
Could you please help me to write the code?
Thank you all in advance for your support.
Best,
For my accounting homework, I need to construct a balance sheet in excel. As you may know, Total Assets should be equal to the sum of Total Liabilities and Equities. At the bottom, I have 2 cells, one of them represents the sum of asset items, whereas the other represents the sum of all liability and equity items.
I would like generate a macro, that verifies that 2 cells are equal to each other in terms of number. And if those 2 cells are not equal, it should not enable the user to close the excel or save the excel.
I am completely new to macros and have no idea how to satisfy that condition.
Could you please help me to write the code?
Thank you all in advance for your support.
Best,