如何删除基于 J 列 = 0 内发布的行?
我在 Excel 电子表格中有以下内容
如何根据其中发布的内容删除行J 列 = 0?
最好剪切该行并将其粘贴到另一张纸中。但是如果您可以帮助我删除它,那就太好了。
I have the following in Excel spreadsheet,
How do I delete a row based on the published within the J column = 0?
It would be better to cut the row and paste it within another sheet.. but IF you can help me with just deleting it, that would be good.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此代码自动筛选活动工作表上 J = 0 的行,将它们复制到第二个工作表上的第一个空白行,然后从活动工作表中删除这些行。
更改此行
Set ws2 = Sheets(2)
将行复制到不同的工作表,即Set ws2 = Sheets("Your Sheet Name")
或Set ws2 = Sheets(5)
第五张纸等This code autofilters the rows on the activesheet where J =0, copies them to the first blank row on the second worksheet, then deletes the rows from the activesheet.
Change this line
Set ws2 = Sheets(2)
to copy the rows to a different sheet, ieSet ws2 = Sheets("Your Sheet Name")
orSet ws2 = Sheets(5)
for the fifth sheet etc这些宏删除 J 列的零代码,并且不会将它们粘贴到其他工作表,如果您需要将 J 列的零代码复制到其他工作表,请告诉我,我会更新它
These macro deletes zero codes of J column and does not paste them to other sheet, if you need zero codes of J column to be copied to other sheet then let me know i will update it