- ©«¤l
- 55
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 81
- ÂI¦W
- 0
- §@·~¨t²Î
- win
- ³nÅ骩¥»
- 10
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2016-5-15
- ³Ì«áµn¿ý
- 2018-11-1
|
¦^´_ 18# PKKO
P¤j¡A«u§r§r¡A©êºp«¨
À³¸Ó¤S¸Õ¿ù¤F¡A¤@¼Ë80¬í@@
§ï¦¨¤U±³o¼Ë¬O72¬í¡A©Ò¥H if ¤º¤é´ÁÂà´«»Ý 8¬í
myCols = 123
myRows = 7923
Rng = [A3].Resize(myRows, myCols).Value
For j = 1 To (myRows - 2)
zc = ""
For i = 1 To myCols
za = Rng(j, i)
zc = zc & "'" & za & "',"
Next i
zc = Left(zc, Len(zc) - 1)
rez = "(" & zc & ")"
ret = ret & rez & ","
DoEvents
Next j-
- Application.ScreenUpdating = False
- StartTime = Timer
- myCols = Range("A2").CurrentRegion.Columns.Count 'pºâ©Ò¦³ªº¦C
- myRows = Range("A1").CurrentRegion.Rows.Count 'pºâ©Ò¦³ªº¦æ
- Rng = [A3].Resize(myRows, myCols).Value
- For j = 1 To (myRows - 2)
- zc = ""
- For i = 1 To myCols
- za = Rng(j, i)
- If za = "" Then 'ªÅ®æÂà´«
- za = 0
-
- ElseIf i = 2 Then '¤é´ÁÂà´«
- If (Len(Split(za, "/")(1)) = 1) And (Len(Split(za, "/")(2)) = 1) Then
- za = Split(za, "/")(0) & "-0" & Split(za, "/")(1) & "-0" & Split(za, "/")(2)
- ElseIf Len(Split(za, "/")(1)) = 1 Then
- za = Split(za, "/")(0) & "-0" & Split(za, "/")(1) & "-" & Split(za, "/")(2)
- ElseIf Len(Split(za, "/")(2)) = 1 Then
- za = Split(za, "/")(0) & "-" & Split(za, "/")(1) & "-0" & Split(za, "/")(2)
- Else
- za = Split(za, "/")(0) & "-" & Split(za, "/")(1) & "-" & Split(za, "/")(2)
- End If
-
- End If
- zc = zc & "'" & za & "',"
- Next i
- zc = Left(zc, Len(zc) - 1) '§R°£³Ì«á¤@Ó","
- rez = "(" & zc & ")"
- ret = ret & rez & ","
- DoEvents
- Next j
- EndTime = Timer
- MsgBox Format(EndTime - StartTime, "00.00") & "’"
- Application.ScreenUpdating = True
½Æ»s¥N½X |
|