prakash_moturu
Board Regular
- Joined
- Nov 2, 2009
- Messages
- 152
Code:
Private Sub CommandButton1_Click()
Sheet1.Range("A1").Value = "1"
Sheet1.Range("A2").Value = "2"
Sheet1.Range("A3").Value = "3"
Sheet1.Range("A4").Value = "4"
Sheet1.Range("A5").Value = "5"
Sheet1.Range("A6").Value = "6"
End Sub
Private Sub CommandButton2_Click()
For i = 1 To 6
For j = 1 To 7
Sheet1.Cells(i, j).ClearContents
Next
Next
End Sub
i need to call CommandButton1_Click() and CommandButton2_Click() alternatively
for every 5 second using timer .
please help me.