[µo°Ý]½Ð°Ý¿é¥X¦¨.TXTÀɮɥi¥H«ü©w¦bTXTÀɤ¤ªº¦ì¸m¶Ü?
- ©«¤l
- 77
- ¥DÃD
- 11
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- winXP
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2011-3-2
|
¥»©«³Ì«á¥Ñ asus103 ©ó 2011-1-19 16:52 ½s¿è
¦^´_ 11# Hsieh
·PÁÂHsieh¤j¤jªº¸Ñ»¡
§Ú¥i¥HÄ~Äò½Ð±Ð¶Ü?
1.For Each A In [A1:D1]
ad = Range(A, Cells(Cells.Rows.Count, A.Column).End(xlUp)).Address
ad¤£¬OA1:D11¶Ü?¬°¦ó¨C¤@¦¸²¾°Ê¤@Äæ¦Ó¤£¬O¤@ÓÀx¦s®æ
ans:§Ú¨Ï¥Î²Ä¤@¦C§@°j°é¡A©Ò¥Had¦r¦ê¬O¶Ç¦^¸Ó¦C¸ê®Æ½d³òªº¦ì§}
¤£¦n·N«ä¡A§ÚÁÙ¬O¤£À´¬O¦p¦ó§i¶DVBA¬O¦C§@°j°éªº
2.Ar(s) = Evaluate("MAX(LENb(" & ad & "))")
¤W¦¡¤§©Ò¥H¬O°}¦C¤½¦¡¬O¦]¬°" & ad & "ÁÙ¬O Evaluate
´«¨¥¤§¡AYn¦bVBA¤¤¨Ï¥Î°}¦C¤½¦¡nª`·N¬Æ»ò
¦pªG»¡¡G
°}¦C¤½¦¡¤¤ªº{}¥ÎEvaluate()¨ú¥N¡AEXCELªº¨ç¼Æ©Ò»Ý¤Þ¼Æ©ñ¤J¦r¦ê¤¤¨Ã¥Î" & & "¨Ó±a¤J
³o¼Ë¹ï¶Ü?
3.Evaluateªº¥Îªk§ÚÁÙ¶·¦h¥[µZ¿i¡A¥u¬O
"¨Ï¥ÎEvaluate¤èªk¤¤µ¥¦P¬O¤u§@ªí¨ç¼Æ¹Bºâ"¬°¦ó¤£¬O¨Ï¥Îapplication.---
¨ä¹ê§Ú¤]¸Õ¹L¥Îapplication.LenB()¥u¬O½sĶ¶¥¬q´N¥X¿ù¤F
¤£¦n·N«ä¡AÄ~Äò§ä±z³Â·Ð
¦pªG¦³¨ä¥L¦a¤è¦³Evaluateªº¥Îªk©Î¬OVBA¤¤¨Ï¥Î°}¦C¤½¦¡ªº¨Ï¥Î»¡©ú
·Ð½Ð§iª¾¡A§Ú·|¦A¦h¥[§V¤Oªº |
|
ASUS
|
|
|
|
|
- ©«¤l
- 77
- ¥DÃD
- 11
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- winXP
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2011-3-2
|
¦^´_ 13# Hsieh
·PÁÂHsieh¤j¤j
§Ú¤j·§¦³¤C¡B¤K¦¨À´¤F
§Ú·|¸ÕµÛ¥Î³o¨Ç·§©À¨Ó¼g¤@Ó¨ç¼Æ¡A¤w¹ý©³¤F¸Ñ¨ä¥Îªk
·PÁ±z
³o¯u¬OÓÂצ¬ªº¤@¤Ñ |
|
ASUS
|
|
|
|
|