ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¥i§_½Ð¦U¦ì¥ý¶iÀ°§Ú²¤Æ¥N½X

¥i§_½Ð¦U¦ì¥ý¶iÀ°§Ú²¤Æ¥N½X

¥i¥H½Ð¦U¦ì¥ý¶iÀ°¤p§Ì²¤Æ¥N½X,Åý¥L°õ¦æ§Ö¤@ÂI,¨ì«á­±50´X¦æ´N«ÜºC¤F,ÁÂÁ¦U¦ì...


Private Sub jump123()
For a = 2 To 10000
  If Cells(a, 1) = "" Then Exit For
    s = Cells(a, 4)

If s Like "201106*" Then
        Cells(a, 5) = "A"
End If
If s Like "201101*" Then
        Cells(a, 5) = "B"
End If
If s Like "201111*" Then
        Cells(a, 5) = "C"
End If
If s Like "201102*" Then
        Cells(a, 5) = "D"
End If
If s Like "201127*" Then
        Cells(a, 5) = "E"
End If
If s Like "1101*" Then
        Cells(a, 5) = "F"
End If
If s Like "1102*" Then
        Cells(a, 5) = "G"
End If
If s Like "1103*" Then
        Cells(a, 5) = "H"
End If
If s Like "1104*" Then
        Cells(a, 5) = "I"
End If
If s Like "1105*" Then
        Cells(a, 5) = "J"
End If
If s Like "1106*" Then
        Cells(a, 5) = "K"
End If
If s Like "1107*" Then
        Cells(a, 5) = "L"
End If
If s Like "1108*" Then
        Cells(a, 5) = "M"
End If
If s Like "1109*" Then
        Cells(a, 5) = "N"
End If
If s Like "1110*" Then
        Cells(a, 5) = "O"
End If
If s Like "1111*" Then
        Cells(a, 5) = "P"
End If
If s Like "1112*" Then
        Cells(a, 5) = "Q"
End If
If s Like "1113*" Then
        Cells(a, 5) = "R"
End If
If s Like "1114*" Then
        Cells(a, 5) = "S"
End If
If s Like "1115*" Then
        Cells(a, 5) = "T"
End If
If s Like "1116*" Then
        Cells(a, 5) = "U"
End If
If s Like "1117*" Then
        Cells(a, 5) = "V"
End If
If s Like "1118*" Then
        Cells(a, 5) = "X"
End If
If s Like "1119*" Then
        Cells(a, 5) = "Y"
End If
If s Like "1120*" Then
        Cells(a, 5) = "Z"
End If

   Next a

End Sub

¦^´_ 25# fyo00241

§Ú¥ý±N§A´£¨Ñªº¸ê®Æ«Ø¥ß¦bG1:H25¡icells(1,7),cells(25,8)¡j

¦A¥ÎPasteData()¶K10000µ§¸ê®Æ

¦]¬°§Úı±o¤ñ¹ïªº¹Lµ{ÆZ¹³ Select Case ¡A©Ò¥HSub¨ú¦W¬°LikeSelectCase()

§A°Ñ¦Ò¬Ý¬Ý¡A¤@¤U¤l´N§¹¦¨¤F


Sub PasteData()

j = 1

For i = 1 To 10000
    Cells(i, 1) = Cells(j, 7)
    j = j + 1
    If j = 26 Then j = 1
Next i

End Sub

Sub LikeSelectCase()

For i = 1 To 10000

Cells(i, 2) = Application.WorksheetFunction.VLookup(Cells(i, 1), Range(Cells(1, 7), Cells(25, 8)), 2, False)

Next i

End Sub


TOP

¦^´_ 20# fyo00241
«Øij¼Ó¥D±N©Ò¦³¸ê®Æ¸m©ó¤@­Ó¸ê®Æ®w(¦p:¤é°O±b)

¦^´_ 22# fyo00241
2007 ¤£¦æªü
½Ð¥[¤W With Cells(ActiveSheet.Rows.Count, "A").End(xlUp).Offset(1)

TOP

¦³¨S¦³¸Õ¹L¥ÎExcel¤º«Ø¨ç¼Æ¡iVLOOKUP¡j¡AÀ³¸Ó¤]ÆZ§Öªº³á!

¤]¥i¥H§âExcel¤º«Ø¨ç¼Æ¼g¦bVBA¸Ì¡A³o¼Ëµ{¦¡¥u¦³ ...
lcc_seven µoªí©ó 2012-1-3 18:20


·PÁ¤j¤j,·Ð½Ð§A´£¨Ñ¤@¤U§Ú¦b¹ê§@¬Ý¬Ý..ÁÂÁÂ!!

TOP

¥»©«³Ì«á¥Ñ lcc_seven ©ó 2012-1-3 18:24 ½s¿è

¦³¨S¦³¸Õ¹L¥ÎExcel¤º«Ø¨ç¼Æ¡iVLOOKUP¡j¡AÀ³¸Ó¤]ÆZ§Öªº³á!

¤]¥i¥H§âExcel¤º«Ø¨ç¼Æ¼g¦bVBA¸Ì¡A³o¼Ëµ{¦¡¥u¦³µuµu´X¦æ¡A¤£¹L»yªk§Ú§Ñ°O¤F

¯ÊÂI¬O¤u§@ªí­n¦³¤@­Ó¦ì¸m©ñ¹ïÀ³ªí

±ß¤W§Ú¦A½¤@¤U®Ñ§â¬ÛÃö»yªkPO¤W¨Ó

TOP

¤j¤j¦A³Â·Ð§A±Hµ¹§Ú,ÁÂÁ¤F!
fyo00241 µoªí©ó 2012-1-3 17:19


¤j¤j¤w¦¬¨ì¤F,´ú¤F¤@¤U³t«×¤]¥i¥H,¦ý·Æ¹«°õ¦æ®Éªº¹Ï¥Ü·|¤[¤@ÂI,¤£ª¾¬O§_¥¿±`..

TOP

¦^´_  fyo00241
²¤Æ UserForm1¦U³æ¦ì¤u§@ªíªºWorksheet_Change ¥i§R°£¸m©óThisWorkbook ¤¤
GBKEE µoªí©ó 2012-1-1 09:31



¤j¤j³o¬q¿ù»~:µLª«¥óWith Cells(Rows.Count, "A").End(xlUp).Offset(1)   '¤u§@ªí(ComboBox2)

TOP

¦^´_  GBKEE


    ¦Û¤v§ïªº ¤£ª¾¦p¦ó
register313 µoªí©ó 2012-1-3 08:28



    ¤j¤j¦A³Â·Ð§A±Hµ¹§Ú,ÁÂÁ¤F!

TOP

¦^´_  register313
»¡©ú¤@¤U¥\¯à¦³¨S¦³°ÝÃD(¨ºÃ䦳°ÝÃD)  ¾Þ§@³t«×¥¿¤£¥¿±`
¼Ó¥DÀɮ׸û¤j,©Ò¥H°õ¦æµ{¦¡³t ...
GBKEE µoªí©ó 2012-1-3 08:22


¤j¤j§A»¡ªº¸ê®Æ®w³¡¥÷¬O¦p¦ó°µ¸û¦n©O??

TOP

¦^´_  fyo00241

¬O¤£¬O¥ý§â¤§«e­×§ï¹Lªº§@­Ó´ú¸Õ
»¡©ú¤@¤U¥\¯à¦³¨S¦³°ÝÃD(¨ºÃ䦳°ÝÃD)  ¾Þ§@³t«×¥¿¤£¥¿ ...
register313 µoªí©ó 2012-1-2 23:39


¤j¤j§A¤§«e§ïªº§Ú´ú¤F¤@¤U¥i¥Hªº³t«×¥i¥H±µ¨ü¤F!!

TOP

        ÀR«ä¦Û¦b : ¦³Ä@©ñ¦b¤ß¸Ì¡A¨S¦³¨­Åé¤O¦æ¡A¥¿¦p¯Ñ¥Ð¤£¼½ºØ¡A¬Ò¬OªÅ¹L¦]½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD