Shweta
Well-known Member
- Joined
- Jun 5, 2011
- Messages
- 514
Hi All,
I have inserted a command button on sheet1, it named as START
It's coding is:
Private Sub CommandButton1_Click()
Sheet10.Range("e1").Value = Format(Time, "long time")
End Sub
I have inserted another command button on sheet1, it named as END
It's coding is:
Private Sub CommandButton2_Click()
Sheet10.Range("f1").Value = Format(Time, "long time")
End Sub
Now, I want to do this by single command button.When I click on command button1, it's name should be changed to END. and when I click on END, it's name should be changed to START.
I hope I am clear.
Please help me out.
Thanks,
Shweta
I have inserted a command button on sheet1, it named as START
It's coding is:
Private Sub CommandButton1_Click()
Sheet10.Range("e1").Value = Format(Time, "long time")
End Sub
I have inserted another command button on sheet1, it named as END
It's coding is:
Private Sub CommandButton2_Click()
Sheet10.Range("f1").Value = Format(Time, "long time")
End Sub
Now, I want to do this by single command button.When I click on command button1, it's name should be changed to END. and when I click on END, it's name should be changed to START.
I hope I am clear.
Please help me out.
Thanks,
Shweta