Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,075
- Office Version
- 2019
- Platform
- Windows
[FONT=Helvetica Neue, Helvetica, Arial, sans-serif]I have 10 command buttons named cbTC#. The code below works good, however Is there a better way to code this without having to write the code below 10x (1 for each command button)? Thanks[/FONT]
[/FONT][/COLOR]
[/FONT][/COLOR]
Code:
[COLOR=#000000][FONT="]Private Sub cbTC1_Click()[/FONT][/COLOR][COLOR=#000000][FONT="]If Len(tbx800) > 0 Then
If MsgBox("Do you want to delete data?", vbYesNo) = vbYes Then
tbx800.Value = ""
End If
End If
End Sub
[COLOR=#222222][FONT=Verdana]
[/FONT][/COLOR]