只需一步,快速开始
1970-1-1 08:00| 发布者: 未知| 查看: 6537| 评论: 0
对啊,用内部函数来获得,最快了。比如用下边的代码。ActiveCell.FormulaR1C1 = "=MAX(R[-26]C[-1]:R[-2]C[-1])"是获得A1到A25之间的最大值。找到之后用Cells对象的Find或FindNext方法来找所在单元格就可以了。比如用如下代码 Cells.Find(What:="1313123", After:=ActiveCell, LookIn:=xlFormulas, _ LookAt:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, _ MatchCase:=False).Activate Debug.Print ActiveCell.Row Debug.Print ActiveCell.Column
评论
|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )
GMT+8, 2025-4-2 12:51 , Processed in 0.084767 second(s), 17 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.