[VBA ] 如何在一個範圍內搜尋一個值並回傳row
如題
我嘗試使用錄製巨集
Columns("A:A").Select
Selection.Find(What:="2001/6/4", After:=ActiveCell, LookIn:=xlValues, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, MatchByte:=False, SearchFormat:=False).Activate
我要搜尋的是2001/6/4 這個日期
不過我執行上述錄製的巨集
卻出現
https://dl.dropbox.com/u/45659306/%E6%93%B7%E5%8F%96.PNG
不知道怎麼解決..
請問我要怎麼在Columns("A:A").Select這個範圍
搜尋"2001/6/4" 並回傳row呢
謝謝各位~
ps:我嘗試使用activecell.offset(1,0).select並使用迴圈
一個一個的比對...但是實在是太慢了..orz
--
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.193.71.35
→
10/15 10:31, , 1F
10/15 10:31, 1F
→
10/15 15:48, , 2F
10/15 15:48, 2F
→
10/15 22:56, , 3F
10/15 22:56, 3F
→
10/15 22:56, , 4F
10/15 22:56, 4F
→
10/16 18:17, , 5F
10/16 18:17, 5F