- ©«¤l
- 83
- ¥DÃD
- 17
- ºëµØ
- 0
- ¿n¤À
- 105
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- XP
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2010-12-28
- ³Ì«áµn¿ý
- 2018-8-8
|
¦^´_ ¤p«L«È
InStr(raw.Cells(i, 3), "¤p¾Ç") ³o¥u·|¶Ç¦^¼Æ¦r
§A¦Û¦ê¤¤ ªì¤p, ¤p¾Ç,ªì¤¤, °ê¤¤.... ...
GBKEE µoªí©ó 2012-8-28 09:44
§Ú©¿µM·Q¨ì¡A¦pªG§Ú§â¤p¾Ç¡B¤¤¾Ç¡B¤j¾Ç¡B¬ã¨s¥Í¥H¤WªºÃþ§O¥ÎarrayÀx°_¨Ó¡A¥ÎFOR LOOP + select case ©Îif¬O¤£¬O¥i¥H¡H
¨Ò¦p¡G- scl(1,1) = "ªì¤p"
- scl(1,2) = "¤p¾Ç"
- scl(2,1) = "ªì¤¤"
- scl(2,2) = "°ª¤¤"
- scl(3,1) = "¤j¾Ç"
- .
- .
- .
- edu(1)="¤p¾Ç"
- edu(2)="¤¤¾Ç"
- edu(3)="¤j¾Ç"
- .
- .
- for j = 1 to 4
- for k = 1 to 2
- select case instr(raw.Cells(i, 3), scl(j,k))
- case >0
- vbtype=edu(j)
- end select
- next k
- next j
½Æ»s¥N½X ¦ý¦pªGsub¤¤©ñ¤F¤Ó¦hªºarray¡A·|¦³ÂI²V¶Ã¡A¦Ó¥BÃþ¦üªºarray¦b¨ä¥Lªºsub ¤]·|¥Î¨ì¡A¦pªG¦b¨C¤@Ósub³£¦s¦³¬Û¦Pªºarray¡AºûÅ@®É¤]«Ü³Â·Ð¡A©Ò¥H§Ú¥´ºâ¥Îpublic const¥hdefine array¡A¦ý¥¢±Ñ¤F¡C
§Úªº°µªk¬O¡G
public dim scl(4,2) as string
const dim scl(1,1) = "ªì¤p"
const scl(1,2) = "¤p¾Ç"
.
sub abc()
¬O¤£¬O¤£¯à¦bpublic define 2dimensionalªº array¡H |
|