match ·j´M¤£¦P¤u§@ªí¥i¥H«ü©wÅܼƶÜ?
- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 38# EGBT
401298E-45 ¨ì 3.402823E38 ¬O¬ì¾Ç°O¸¹,½ÐGOOGLE ¬d¬Ý¤F¸Ñ
Dim i, y, x As Single
'i, y ¨S«ü©w³£¬O As Variant,V½Ð¦Û¦æ¬d¬Ý VBA ªº»¡©ú
i, y µ{¦¡¥i¥H±µ¨ü¶Ç¦^¿ù»~È,
x As Single ¥²¶·¬O¶Ç¦^¼Æ¦r,µ{¦¡¤£±µ¨ü¿ù»~È.- Application.Match("A1", Range("C1:C14"), -1)
½Æ»s¥N½X ½Ð¬Ý40¼Óªºµ{¦¡½X |
|
|
|
|
|
|
- ©«¤l
- 9
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-9-13
- ³Ì«áµn¿ý
- 2015-11-30
|
G¤j±z¦n~³o¨â½g§Ú³£¦³¬Ý¹L¤F³á~ ¤£¹L¯à²z¸Ñ¦³¡A
¤j·§ª¾¹D[]¤¤¤£±µ¨üÅܼƪº¦r¦ê¡A©Ò¥H§âµ{¦¡½X§ï¦¨
Private Sub CommandButton1_Click()
Cells(4, 1) = Application.Match(A3, Sheets("AAA").Range("A1:A10"), 0)
End Sub
'¥Ø¼Ð¬O³z¹L¥Ø«e¤u§@ªíCCCªºA3Äæ¸ê®Æ(AA001)¡A¥hmatch¤u§@ªíAAA¤¤A1~A10²Å¦XAA001ªº¦ì¸m«á¡A¼g¦b¤u§@ªíCCCªºCells(4, 1)¦ì¸m
¦p¦¹ÁÙ¬O·|§ä¤£¨ì¥Ø¼Ð³á~ ¯àÀ°¦£«üÂI¶Ü~~ ¤£¦n·N«ä¤F |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 34# GBKEE
¨Ò¦pªþÀÉ~
³o¼Ë¤l¦n¹³¤]¬O #N/A¡B¿ù»~2048 ...«¢....¥i¯à§ÚÁÙ¨S¿ìªk»â®©GBKEE¤j¤j©Ò»¡ªº- Sub test()
- Dim i, y, x As Single
- i = Application.Match("A1", Range("C1:C14"), -1)
- Range("B1") = i
- y = Application.Match("A2", Range("C1:C14"), -1)
- Range("B2") = y
- x = Application.Match("A3", Range("C1:C14"), -1)
- Range("B3") = x
- End Sub
½Æ»s¥N½X |
-
-
test1.zip
(9.57 KB)
¦pªþÀÉ
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 34# GBKEE
¦A½Ð°ÝGBKEE¤j¤j
Integer½d³ò¬° -32,768 ¨ì 32,767 ¤§ 16 ¦ì¤¸·|·¸¦ì,
¦ÓSinglet¼Æªº®ÉÔ¬O±q -3.402823E38 ¨ì -1.401298E-45
¥¿¼Æªº®ÉÔ¬O±q 1.401298E-45 ¨ì 3.402823E38¡A¬°¤°»òSingle´N¤£·|·¸¦ì©O¡H§ÚÁÙ¬O¤£¤ÓÀ´³oÓ¹D²z...
ReDim AR(1 To Rows.Count)
AR(Rows.Count) = #1/1/2015# ' <- ¤£¯à¼g¦º¡AMatch´N¬O-1¡A§ì¤£¨ìªº®ÉÔ¤~·|§ä¤j©ó¦Û¤vªº¤é´Á
I = Application.Match(#2/1/2015#, AR, -1)
MsgBox I
«¢~«Ü·PÁÂGBKEE¤j¤j³o»ò@¤ßªº¦^Âиѵª°Ú~ |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 32# GBKEE
WoW...Cool~
¦ý¬O§ÚÁÙ¦³¤@Ó°ÝÃD...´N¬O §Ú¬O¤ñ¹ï¤é´Á
¤ñ¹ïªº¼ÆȬ°
2015/1/1
¤ñ¹ïªº°}¦C¬°
2014/12/31
2015/1/2
2015/1/3
...
..
.
Match«á±³]©w 1 §ä¤p©ó ·|§ä¨ì 2014/12/13
¦ý¬O§Ú³]©w -1 §ä¤j©ó ¥L¥X²{ "·¸¦ì" ¦Ó¤£·|§ä¨ì 2015/1/2 ...
°ÝÃD¥X¦bþ¸Ì? |
|
|
|
|
|
|
- ©«¤l
- 127
- ¥DÃD
- 38
- ºëµØ
- 0
- ¿n¤À
- 166
- ÂI¦W
- 0
- §@·~¨t²Î
- Microsoft
- ³nÅ骩¥»
- Windows 7
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-7-31
- ³Ì«áµn¿ý
- 2018-8-3
|
¦^´_ 26# GBKEE
§ì¨ú¼ÆÈ
§Ú¬Oª½±µ§ï
EE.Activate¡A¿E¬¡Sheet¥h§ì¨ú¡A¤£ª¾¹DGBKEE¤j¤j¬O§_¦³§ó¬¡ªº¤èªk©O? |
|
|
|
|
|
|