设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 12069|回复: 10
打印 上一主题 下一主题

从工作表中删除空行和指定字符行

[复制链接]
1#
发表于 2008-5-30 14:08:28 | 显示全部楼层
Sub CleanUp()
    On Error Resume Next
      Columns("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
一句就好,搞这么复杂干什么
2#
发表于 2008-5-30 19:41:03 | 显示全部楼层
原帖由 pureshadow 于 2008-5-30 16:03 发表
没什么意见啦,代码妖也会,
With Columns("A:A")
    .Replace What:="me", Replacement:=""
    .SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End With

不错哈!!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-5-5 10:57 , Processed in 0.098740 second(s), 25 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表