Range("H2") = ActiveSheet.Shapes(Application.Caller).AlternativeText
Hi,
Try:
Code:Range("H2") = ActiveSheet.Shapes(Application.Caller).AlternativeText
ActiveSheet.Shapes("Button 2").Select
Selection.Formula = "=A2"
ActiveSheet.Shapes("Button 2").Formula = "=A2"
With ActiveSheet
.Shapes("Button 2").TextFrame.Characters.Text = CStr(.Range("A2").Value)
End With
AlternativeText is what a web browser sees in some situations. It is intially set to the text of the button, but is not what the user sees when running excel.
To set or read the text on a Forms Button,
Code:With ActiveSheet .Shapes("Button 2").TextFrame.Characters.Text = CStr(.Range("A2").Value) End With