§Q¥ÎFind§ä¤é´Á¡A¥X²{¿ù»~!!
- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¥»©«³Ì«á¥Ñ stillfish00 ©ó 2018-8-3 10:49 ½s¿è
¦^´_ 19# hugh0620
¨S³o¦^¨Æ¡A19# ÀÉ®×ÁÙ¬O·|¥X²{¿ù»~¡C |
|
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C
|
|
|
|
|
- ©«¤l
- 559
- ¥DÃD
- 58
- ºëµØ
- 0
- ¿n¤À
- 626
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2010-11-22
- ³Ì«áµn¿ý
- 2024-6-14
|
¥»©«³Ì«á¥Ñ hugh0620 ©ó 2018-8-3 15:22 ½s¿è
GÄæ¸ê®Æ®æ¦¡¬O¦Ûq¦Ó«D¤é´Á¡AFind®É·|·í¦¨¦r¦ê¨Ó¤ñ¡A¦ý§A¶Ç¤JFindªºST¬ODate¡A©Ò¥H§ä¤£¨ì ...
stillfish00 µoªí©ó 2018-8-3 10:38
À³¸Ó¤£¬O³oÓ°ÝÃD¡A¦pªG¬O³oÓ°ÝÃD¡A§ÚÀ³¸Ón¥h½Õ¾ãDÄæ¦ìªº®æ¦¡¡A¦ý§Ú¨Ã¨S¦³³o¼Ë¤l³B²z¡A
¶È¬O¦bµ{¦¡½X¤W°µ×¥¿¦Ó¤w¡C
¦pªG¦³¤ñ¸û¦nªº³B²z¤è¦¡¡A§Ú³£¦³´£¨ÑÀɮסA¥i¥H¶i¦æקï¤Î´ú¸Õ¡C
ÁÙ¬O¤ñ¸û·Q¤F¸Ñ¡AþÓÀô¸`¥X¤F¿ù»~!! |
|
¾Ç²ß¤~¯à´£¤É¦Û¤v
|
|
|
|
|
- ©«¤l
- 559
- ¥DÃD
- 58
- ºëµØ
- 0
- ¿n¤À
- 626
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2010-11-22
- ³Ì«áµn¿ý
- 2024-6-14
|
¦^´_ hugh0620
¨S³o¦^¨Æ¡A19# ÀÉ®×ÁÙ¬O·|¥X²{¿ù»~¡C
stillfish00 µoªí©ó 2018-8-3 10:39
×¥¿«á¡AÀɮ׬O¥i¥H³Q¥¿±`°õ¦æ!!
¤£¤F¸Ñ¡AÀÉ®×ÁÙ¬O·|¥X²{¿ù»~??
¬O§_¥i¥HºI¹Ï©Î¬O¤W¶ÇGIFÀɬݤ@¤U!! |
|
¾Ç²ß¤~¯à´£¤É¦Û¤v
|
|
|
|
|
- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¦^´_ 23# hugh0620
§Úª¾¹D¬°Ô£µ²ªG¤£¤@¼Ë¤F¡C
§A¥i¥H¸Õ¸Õ¥ý«öCtrl+F¡A§A¯à¶]¬O¦]¬°§A¥Ø«eªº¿ï¶µ¬O¦b·j´M'¤½¦¡' ¡A§Úªº¬O¦b·j´M'¤º®e'©Ò¥H°õ¦æ®É¦³Error
Find ªº°Ñ¼Æ¦³«Ü¦h¬OOptional¡A¦ý¬O·í§A¨S«ü©w³o¨Ç°Ñ¼Æ®É¡A¥L·|¥H¤W¦¸¨Ï¥ÎªºÈ§@¬°¹w³]È¡C
³o¸Ìªº¤W¦¸¥]§t¨Ï¥ÎªÌ¦³¥Î¨ìCtrl+F·j´M®É¿ï¾Üªº¿ï¶µ¡C
©Ò¥H¡A¥ÎFindªº¸Ü³Ì¦nÁÙ¬O©ú½T«ü©w³o¨Ç°Ñ¼Æ¡C |
|
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C
|
|
|
|
|
- ©«¤l
- 559
- ¥DÃD
- 58
- ºëµØ
- 0
- ¿n¤À
- 626
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2010-11-22
- ³Ì«áµn¿ý
- 2024-6-14
|
¦^´_ hugh0620
§Úª¾¹D¬°Ô£µ²ªG¤£¤@¼Ë¤F¡C
§A¥i¥H¸Õ¸Õ¥ý«öCtrl+F¡A§A¯à¶]¬O¦]¬°§A¥Ø«eªº¿ï¶µ¬O¦b·j´M'¤½ ...
stillfish00 µoªí©ó 2018-8-3 23:09
Ctrl+Fªº¤è¦¡¡A¦b¹J¨ì°ÝÃDªº®ÉÔ¡A¤]¦³¸ÕµÛ¥Î¹L³o¼Ëªº¤è¦¡¡A
¤]¦³¼g³]©wLookIn:=xlValues¡A¦ý¤]´ú¸Õ¹L¡A¤£¦æ!!
¦³¨S¦³¤@ÓFind¸òFormatªº¬ÛÃö°Ñ¼Æ¤Wªº»¡©ú¸ò½d¨Ò¡A
¯à§ó¤è«K¤F¸Ñ¦p¦ó¨Ï¥Î!!
(¤£¼ô±x³W½d¤Î¨Ï¥Î¤è¦¡¡AÀ³¥Î¤W¡A´N·|«Ü¥d!! ¤]»Ýn³o¤è±ªº¨D§U¸ò«ü¾É) |
|
¾Ç²ß¤~¯à´£¤É¦Û¤v
|
|
|
|
|
- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¥»©«³Ì«á¥Ñ stillfish00 ©ó 2018-8-6 18:20 ½s¿è
¦^´_ 25# hugh0620
Find °Ñ¼Æ»¡©ú : https://msdn.microsoft.com/zh-tw ... e-find-method-excel
¦Û¤v²³æ¸Õ´XºØ¼gªk¡A °£¤F²Ä¤GºØ·|Fail¦p¦P¤§«eÁ¿ªº¡A¨ä¥L³£¯à¦¨¥\§a¡C- Sub TestCases()
- Dim ST As Date
- Dim ED As Date
- ST = ¤u§@ªí7.Range("W3")
- ED = ¤u§@ªí7.Range("X3")
- With ¤u§@ªí7
- Set A = .Range("G3:G10000").Find(What:=ST, After:=.[G3], LookIn:=xlFormulas, LookAt:=xlWhole)
- If Not A Is Nothing Then Debug.Print "#1", A.Row Else Debug.Print "#1", "Find Fail"
- Set A = .Range("G3:G10000").Find(What:=ST, After:=.[G3], LookIn:=xlValues, LookAt:=xlWhole)
- If Not A Is Nothing Then Debug.Print "#2", A.Row Else Debug.Print "#2", "Find Fail"
- Set A = .Range("G3:G10000").Find(What:=Format(ST, "yyyy/mm/dd"), After:=.[G3], LookIn:=xlValues, LookAt:=xlWhole)
- If Not A Is Nothing Then Debug.Print "#3", A.Row Else Debug.Print "#3", "Find Fail"
- Set A = .Range("G3:G10000").Find(What:=.Range("W3").Text, After:=.[G3], LookIn:=xlValues, LookAt:=xlWhole)
- If Not A Is Nothing Then Debug.Print "#4", A.Row Else Debug.Print "#4", "Find Fail"
- End With
- End Sub
½Æ»s¥N½X |
|
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 170
- ÂI¦W
- 0
- §@·~¨t²Î
- Window 7
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-9-5
- ³Ì«áµn¿ý
- 2022-7-20
|
¦^´_ 25# hugh0620
³o¸Ì¦³¤@½g¤£ª¾¬O§_¦³À°§U¡H
https://excelmacromastery.com/excel-vba-find/#Using_SearchFormatwith_Find
½Ð¬Ý¡GUsing SearchFormat with Find ½g¤Î¨ä½d¨Ò
¨ä¤¤¦³¤@¥y¡G
Application.FindFormat.Clear
¥i²M°£«e¦¸³]©wªº Find Format |
|
|
|
|
|
|
- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-23
|
°²³]²Ä¤@¦¸¶}±ÒEXCEL«á,¨Ã¥¼°õ¦æ¥ô¦óªº·j´M°Ê§@,
¥u¶i¦æ³oÀɮתºFIND, ¦Ó¦³®É¥i, ¦³®É¤£¥i(½T©w´M§äȬO¦s¦bªº),
«hÀ³¤£¬O·j´M±ø¥ó°Ñ¼Æªº°ÝÃD¤F~~ |
|
|
|
|
|
|
- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-23
|
Y¥ÎFIND¤@ª½¦³§xÂZ, ¥i§ï¥ÎMATCH¨ç¼Æ
Dim ST&
ST = Range("W3")
A = Application.Match(ST, [G:G], 0)
If IsError(A) Then MsgBox "§ä¤£¨ì W3 ªº¤é´Á!!!": Exit Sub
MsgBox A |
|
|
|
|
|
|