不知道是否有更好的方法?
这是我的,感觉绕弯了。
假设选择了1行,或者多行,或者部分单元格
on error resume next
a=replace(selection.address, "$","")
b=split(a, ":")(0)
c=split(a, ":")(1)
d=b*1+c*1
if err.number = 0 then
msgbox "yes, you select one row or rows"
else
msgbox "no, not a row"
end if
on error goto 0
使用道具 举报
是喔,小线这个的确可以的。谢谢哦,[em17][em17][em17]
看看还有其他的提议么?[em09]
谢谢帮我验证了一次。这样的确可以的。[em23]
这样不知道对不对
这个也行,不过还是刚才那个简单一些。谢谢,[em24]
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )
GMT+8, 2024-5-28 06:02 , Processed in 0.323644 second(s), 7 queries , Gzip On, Yac On.
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.