- 帖子
- 12
- 主題
- 1
- 精華
- 0
- 積分
- 50
- 點名
- 0
- 作業系統
- Windows
- 軟體版本
- Xp
- 閱讀權限
- 20
- 註冊時間
- 2017-12-26
- 最後登錄
- 2019-5-21
|
2#
發表於 2018-1-2 18:25
| 只看該作者
回復 1# solitary16
Sub test()
If (Cells(1, 3) = "") Then
Cells(1, 3) = Cells(1, 1)
ElseIf (Cells(2, 3) = "") Then
Cells(2, 3) = Cells(1, 1)
Else
startrow = Range("c1").End(xlDown).Row + 1
Cells(startrow, 3) = Cells(1, 1)
End If
Application.OnTime Now + TimeValue("00:01:00"), "test"
End Sub |
|