Excel excel code to change command button caption

Joined
Aug 2, 2015
Messages
1
Reaction score
0
I have been trying to write a macro to change a command button caption to the data in a cell

Sub Bouton97_Cliquer()
UserForm1.CommandButton97.Caption = Sheet1.Range("B13")
End Sub

But I can't get it to work.
Would appreciate any help

Bren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top