§Q¥ÎFind§ä¤é´Á¡A¥X²{¿ù»~!!
- ©«¤l
- 20
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 61
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW®ç¶é
- µù¥U®É¶¡
- 2010-9-1
- ³Ì«áµn¿ý
- 2019-4-26
|
¥[¤J is nothing
Set A = Sheets("¦æ¨Æ¾ä").Range("G3:G10000").Find(ST)
If A Is Nothing Then
'¦Û¦æ¥[¤J§ä¤£¨ìST³oÓ¦r¦ê©Î¼Æ¦r®Éªº°Ê§@
Else
A = A.Offset(0, 0).Row
End If |
|
|
|
|
|
|
¡@¼ÊºÙ: ªü¦õ ¡@ÀY»Î: ¤W¯ZµL²á¥´©Ç¥h
¤¤¾Ç¥Í
- ©«¤l
- 108
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 113
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »OÆW
- µù¥U®É¶¡
- 2017-9-7
- ³Ì«áµn¿ý
- 2019-2-27
|
¦^´_ 10# hugh0620
¸Û¦pGBKEE¶W¯Åª©¥D©Ò¨¥¡A
Find¤§©Ò¥H¥X²{°ÝÃD¡A
¬O¦]¬°§A´M§äªº½d³ò¨S¦³¸ê®Æ¡A
Find§ä¤£¨ì§AÅܼÆKªºÈ¡A
§AÀ³¸Ónקï¤@¤U[AB10:AM10000]ªº½d³ò¡C
¥t¥~¡A§AFindªºÈ¾É¦V TE01 ³oÓÅܼơA
¦ý¬O³oÓÅܼƦA«á±¤]³£¨S¦³¦A¥X²{¡A
©Ò¥H¬O¦³ÂIºN¤£µÛÀYºü¡C
¦pªG§A»Ýn¨ä¥L¨ó§U¡A
«Øij§A¥i¥H§â§Aªº¾ãÓÅÞ¿è¸ò¥Øªº¸òª©¤W¼ö¤ß¤j¤j̤À¨É¡A
§Ú¬Û«H§A¥i¥H±o¨ì«Ü¦nªº¦^õXªº¡I
¯¬§A¶¶¤ß : ) |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 13# a5007185
¶Ù!! §A¥i¯à»~¸Ñ¤F¡A ´£¨ÑªºÀɮסA¬O°w¹ï§Ú¤@¶}©lPOªº¤å¡A
A¡BBªº³¡¤À¦b°õ¦æªº¹Lµ{¤¤²£¥Í¿ù»~¡A¦Ó«D¥h°Q½×¤U¥b¬q¸ê®Æªº½d³ò¡C
A¡BBªº¸ê®Æ¬O¦³ªº¡A¦ýÁÙ¬Oµo¥Í¿ù»~¡C
¦]¬°¡A¦b¨C¦¸¼¶¼gFIND®É¡A³oÓ°ÝÃD¤@ª½«½Æ©Êªºµo¥Í¡C
¤U¥b¬qªº³¡¤À¡A¥u¬O³Ìªì§Ú¦b´ú¸Õ²Îp°Ï¶¡¸ê®Æ®É¡A¦b¦P¤@ÓSHEET°µÂ²³æªº¼ÒÀÀ¡A
«á¨Ó¡A¤u¨ã°µ¦n«á¡A¨S¦³¦A¥h×¥¿³oÓ³¡¤À!!
¨ä¹ê³]pªºÅÞ¿è¡A´N¦p¦Pµ{¦¡½Xªº¤º®e¡A¥Dn¬O¡G²Îp°Ï¶¡ªº¤u§@¤Ñ¼Æ!!
«á®`¶ë¨ì¨C¤@µ§¸ê®Æ¤¤(¶}©l¤é¡Bµ²§ô¤é)¡C ³oÓ³¡¤À´N¤U¬O¥b¬qªº³¡¤À¡A³oÓ¬O¨S¦³°ÝÃDªº!! |
|
¾Ç²ß¤~¯à´£¤É¦Û¤v
|
|
|
|
|
¡@¼ÊºÙ: ªü¦õ ¡@ÀY»Î: ¤W¯ZµL²á¥´©Ç¥h
¤¤¾Ç¥Í
- ©«¤l
- 108
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 113
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »OÆW
- µù¥U®É¶¡
- 2017-9-7
- ³Ì«áµn¿ý
- 2019-2-27
|
¦^´_ 14# hugh0620
©êºp¡A§Úµy·L¾ã²z¥H¤W¦U¦ì¤j¤jªízªº·N¨£¡C
Find¨ç¼Æ¦pªG¸Ó½d³ò§ä¤£¨ì§Aªº¥Ø¼Ðªº®ÉÔ¡A
¨ç¼Æ·|¦^õX¡uNothing¡v¡A
¦Ó¬JµMSet A = Nothing¡A
·íµMA´N¤£·|¦³RowªºÄÝ©Ê¡A
©Ò¥Hµ{¦¡¤~·|¸õ¿ù¡A
³o´N¬O§A°ÝÃDªº©Ò¦b¡C
©Ò¥H¬°¤FÁקK³oÓ°ÝÃD¡A
¦b°õ¦æ A = A.Offset(0, 0).Row ¤§«e¥ýÀˬdA¬O§_¦s¦b¡A
Y¤£¦s¦b«h¸õ¥X°T®§¨Ã°±¤îµ{¦¡¹B§@¡C- Set A = ¤u§@ªí7.Range("G3:G10000").Find(ST)
- If A Is Nothing Then
- MsgBox "A³¡¤À¿é¤Jªº¤é´Á¤£¦s¦b": Exit Sub
- Else
- A = A.Offset(0, 0).Row
- End If
- Set B = ¤u§@ªí7.Range("G3:G10000").Find(ED)
- If B Is Nothing Then
- MsgBox "A³¡¤À¿é¤Jªº¤é´Á¤£¦s¦b": Exit Sub
- Else
- B = B.Offset(0, 0).Row
- End If
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 12# doom834
¶Ù¡AÁÂÁ§Aªº´£¿ô¡A ¤£¥[¤Jis nothing ¬O¬G·Nªº¡A
¬°¤°»ò¤£¥[¤J¡A¥Ñ©ó¡A¦bpºâ¥Í²£ªºt¸ü±¡ªp¡A¤£¯àpºâ¿ù»~¡A
±¡Ä@Åýµ{¦¡¦b¶]®ÉÔ¡Aµo²{¿ù»~¡AµLªk°õ¦æ¤U¥h¡A¨Ï¥ÎªÌ´N·|¤ÏÀ³!! |
|
¾Ç²ß¤~¯à´£¤É¦Û¤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
|
¦^´_ 15# a5007185
¶Ù!! ¥i¯àÁÙ¬O¨S¦³²M·¡´£°Ýªº°ÝÃD!!
°ÝÃDÂI¡G¸ê®Æ¦³¡A¦ý«oµo¥Í§ä¤£¨ì¸ê®Æªº°ÝÃD¡C
¦Ó«D¬O±´°Q¡A¸ê®Æ¨S¦³®Éªº³B¸m!! |
|
¾Ç²ß¤~¯à´£¤É¦Û¤v
|
|
|
|
|
- ©«¤l
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 17
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2024-11-19
|
¤F¸ÑA ¬O§_¦³ª«¥ó:
Set A = ......
if not A is Nothing then .......... |
|
|
|
|
|
|
- ©«¤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
|
FIND_ªºÀ³¥Î°ÝÃD_¤w¸g×¥¿.zip (104.04 KB)
¦P¤@¼ËªºÀɮסA¬Û¦PA¡BBªº³]©w¡A¤U¥b¬q°µ¤F¤p½Õ¾ã¡A¾ãÓµ{¦¡¬O¥i¥H³Q°õ¦æªº¡C
¦ý§ÚÁÙ¬O¤£¯à²z¸Ñªº¬O¡A¬°¤°»ò·íªìA¡BB·|¥X²{Nothing (¦ý¸ê®Æ¤W©ú©ú¦³)¡A
§Ú«á¨Óªº³B²z¬O¡A§â
Set A = ¤u§@ªí7.Range("G3:G10000").Find(ST) <=¤£°Ê
A = A.Offset(0, 0).Row <=A§ï¦¨A01¡AA01 = A.Offset(0, 0).Row
«·sRUN¡A´N¥i¥HRUN¡AA¤]¨S¦³¦Aµo¥ÍNothingªº±¡ªp¡C
µM«á¡AA01 = A.Offset(0, 0).Row ¤S§ï¦^A = A.Offset(0, 0).Row
¸ÕµÛ¦brun¡A¤]¨S¦³µo¥Í°ÝÃD¡C
Áö¬O¡A°ÝÃD³Q¸Ñ¨M¡A¦ý§ÚÁÙ¬O¤£¤F¸Ñ¡A¨ì©³¬O«ç»ò¦^¨Æ¡A
¬OþÓÀô¸`¡B©Î¬O³]©w¤Wªº»Ýn¦p¦ó½Õ¾ã!!
³o¬O§ÚºÃ´bªº¦a¤è¡A¦³½Ð¤j¤j«ü±Ð!! |
|
¾Ç²ß¤~¯à´£¤É¦Û¤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
|
¦^´_ 17# hugh0620
GÄæ¸ê®Æ®æ¦¡¬O¦Ûq¦Ó«D¤é´Á¡AFind®É·|·í¦¨¦r¦ê¨Ó¤ñ¡A¦ý§A¶Ç¤JFindªºST¬ODate¡A©Ò¥H§ä¤£¨ì¡C
n¹À¶Ç¤JST«e¦AformatÂন¦r¦ê
n¹ÀGÄæ®æ¦¡³£§ï¤é´Á |
|
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C
|
|
|
|
|