SCENARIO:
Hi, i would like to change the caption of "ADD" to "SAVE" when it is pressed at run time.
Could somebody is there to help me in this regard.
SOLUTION:
Option Explicit
Public Sub Command1_Click()
If Command1.Caption = "SAVE" Then
Command1.Caption = "ADD"
'Put Save commands here
Else
Command1.Caption = "SAVE"
'put ADD COMMAND BUTTON Commands here
End If
End Sub
SOURCE | LINK (Daniweb.com) | LANGUAGE | ENGLISH |
Excel – VBA – How To change command button’s Caption after Single Click – http://heelpbook.altervista.org/?p=1997 – HeelpBook – Visit http://www.heelpbook.net OR http://mobile.heelpbook.net on your tablet! – 09/11/2011 – 15:25 – #heelpbook @heelpbook