excel删除当前行vba代码
发布网友
发布时间:2022-10-18 08:33
我来回答
共1个回答
热心网友
时间:2023-11-10 17:24
给你完整代码把:
sub aa()
for i=range("C65536").<a href="https://www.baidu.com/s?wd=end&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBPyR3nW9-PA79ujNWPjbL0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtdrj6kP1mvnj0" target="_blank" class="-highlight">end</a>(xlup).row to 1 step -1
if cells(i,3)= 0 then
rows(i).delete
<a href="https://www.baidu.com/s?wd=end&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBPyR3nW9-PA79ujNWPjbL0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtdrj6kP1mvnj0" target="_blank" class="-highlight">end</a> if
next
<a href="https://www.baidu.com/s?wd=end&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBPyR3nW9-PA79ujNWPjbL0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtdrj6kP1mvnj0" target="_blank" class="-highlight">end</a> sub
追问代码里有网址链接的,能删掉吗?再个好像没有取消保护和恢复保护的代码,我想设置两个按钮,一个是删除的,一个是插入的。