How does the cell change--typing or the result of a calculation?
If by typing, put this behind the worksheet:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Range("a1")) Is Nothing Then Exit Sub
Me.CommandButton1.Caption = Range("a1").Value 'or .Text ??
End Sub
If it's the result of a calculation:
Private Sub Worksheet_Calculate()
Me.CommandButton1.Caption = Range("a1").Value 'or .Text ??
End Sub
Using the .text property will put what the cell looks like (try it with a
currency formatted cell). The .value will put the, er, value.
rob said:
Grrr....Sorry Dave, it was a a control toolbox button. The forms procedure
will help me anyway so thanks for that too.
The Control button works fine, but only once I click the button. That's OK
but is there a way for the name to change as soon as the Value in A1 is
changed? (Sorry bout that..... there's always more, isn't there!)
Rob