Private Sub Form_Load()Me.HideOpen App.Path & "\out.txt" For Output As #1 k = 1 Do i = i + 1 k = Val(Right(k * 3, 3)) If k = 1 Then Print #1, i: Exit Do LoopClose #1EndEnd Sub
Private Sub Form_Load()
回覆刪除Me.Hide
Open App.Path & "\out.txt" For Output As #1
k = 1
Do
i = i + 1
k = Val(Right(k * 3, 3))
If k = 1 Then Print #1, i: Exit Do
Loop
Close #1
End
End Sub