bobkap
Active Member
- Joined
- Nov 22, 2009
- Messages
- 323
- Office Version
- 365
- Platform
- Windows
- Mobile
- Web
If a cell is cleared by just hitting the spacebar I understand that it is not really "clear" unless you clear it with "Clear Contents".
Is there a way in VBA that you are able to show a cell as clear when it has been cleared by just using the spacebar?
For example, in the code below, cells (4,2) will not show as empty unless they have been emptied by using Clear Contents.
Is there a way in VBA that you are able to show a cell as clear when it has been cleared by just using the spacebar?
For example, in the code below, cells (4,2) will not show as empty unless they have been emptied by using Clear Contents.
VBA Code:
If IsEmpty(Cells(4, 2)) Then
cost = Price * (1 - margin)
Cells(4, 2) = cost