圖一Sub 程式VBA()
Y = Sheet2.[A65536].End(xlUp).Row
' On Error Resume Next
For X = 5 To Y
If 1 = 1 Then
Sheet2.Cells(X, 18) = Mid(Sheet2.Cells(X, 3), 9, 3)
End If
Next
End Sub作者: jcchiang 時間: 2015-5-27 16:59
Sub ex()
Y = Sheet2.[c65536].End(xlUp).Row
' On Error Resume Next
For X = 5 To Y
If 1 = 1 Then
Sheet2.Cells(X, 18) = Split(Sheet2.Cells(X, 3), "-")(1)
End If
Next
End Sub
試試!!作者: rouber590324 時間: 2015-5-27 17:03
dear sir
100% 符合 需求 thanks*10000作者: jcchiang 時間: 2015-5-27 17:08
Sub ex()
Y = Sheet2.[c65536].End(xlUp).Row
For X = 5 To Y
Sheet2.Cells(X, 18) = Split(Sheet2.Cells(X, 3), "-")(1)
Next
End Sub作者: rouber590324 時間: 2015-5-28 09:45