- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 4
- ÂI¦W
- 0
- §@·~¨t²Î
- windows7
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-10-9
- ³Ì«áµn¿ý
- 2017-2-17
|
¤p§Ì¦³Ó°ÝÃD¡A¬Ý¤F1ӱߤWªººô¸ô¸ê®Æ¡AÁÙ¬O·Q¤£¨ìn«ç»ò²¤Æ~
·Q½Ð°Ý¦U¦ì¦Ñ®v:
§Úªº·Qªk¬O¦bexcel²Äcells(i,1)¤¤¤ñ¹ï¯S©w¦r¦ê(¤j¬ù1²Õ¦³5~10¦r¦ê¡A¤j¬ù¦³5²Õ)¡A
¨Ò¦pA²Õ(¦³TA11,TA16,TA18~)
B²Õ¦³(TA12,TA13,TA19,TA58~)
C²Õ~
n²Õ¡C
=>¦r¦ê¤¤¡A¼Æ¦r¤Î^¤å¦rµL³W«ß¤Î³W«h©Ê¡C
§ä¨ì¨º¤@²Õ¤¤ªº¦r¦ê«á¦bcells(i,3)¥N¤J¸Ó²Õªº"¯S©w¦r¦ê"¡A
§Ú¸Õ¼g¥¨¶°¦p¤U:
(§Ú¬On¬Ý¦³¿ëªk²¤Æif ±ø¥ó¦¡¤¤ªº¤ñ¹ï¦r¦ê)
Ps:§ÚÁÙ¥¼§â©Ò¦³n¤ñ¹ïªº¦r¦ê©ñ¤W¨Ó¡A©ñ¤W¥h·|ÆZ¦hªº:L ¡C
Sub AAA()
Dim i As Integer
For i = 1 To 10000
If Cells(i, 1) = "TA11" Or Cells(i, 1) = "TA16" Or Cells(i, 1) = "TA18" Then
Cells(i, 3) = "YES"
ElseIf Cells(i, 1) = "TA12" Or Cells(i, 1) = "TA13" Or Cells(i, 1) = "TA19" Or Cells(i, 1) = "TA58" Then
Cells(i, 3) = "YES,sir"
ElseIf Cells(i, 1) = "CA11" Or Cells(i, 1) = "CA16" Or Cells(i, 1) = "CA18" Or Cells(i, 1) = "CA28" Then
Cells(i, 3) = "you right!!"
ElseIf Cells(i, 1) = "AA31" Or Cells(i, 1) = "AA56" Or Cells(i, 1) = "AA18" Or Cells(i, 1) = "AA68" Then
Cells(i, 3) = "HI"
Else
Cells(i, 3) = "NO"
End If
Next
End Sub
½Ð±Ð¦Ñ®v¤F~~·PÁ¡A·PÁÂ!!! |
|