[英]Excel VBA - Delete rows when a cell contains a date
I am trying to write code that does the following: 我正在尝试编写执行以下操作的代码:
Here's all you need to do this: 这是您要做的所有事情:
- Using the VBA function
IsDate
使用VBA函数
IsDate
- If the value returned is true on the value in
Range A4
如果返回的值在
Range A4
的值为true- Delete
entire row
ofRange A4
删除
Range A4
entire row
- If not then your sub is over.
如果没有,则您的子任务结束。
Really it should not be much longer than 5-9 lines of code and it's all very very very simple. 确实,它不应超过5-9行代码,而且非常非常简单。 Come back if you have trouble writing the code and ask a specific question about what you are having trouble with .
如果您在编写代码时遇到问题,请回来, 并提出有关您遇到问题的特定问题 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.