Struggling to change the caption of a  command button in excel (2007) using VBA? Try the following code:

Application.ActiveWorkbook.Sheets(Sheetname where button is located).Shapes(name of the button).DrawingObject.Object.Caption = “New Caption!”

Somehow in Excel 2007 using .Textframe.Characters.Text no longer seems to work. It gives you an “Object does not support this method” error message.

This entry was posted in Microsoft Development and tagged by Richard Zaat. Bookmark the permalink.
Richard Zaat

About Richard Zaat

Projectleader 'Plan your work' Senior Information / Business Analyst Requirements coach RUP Process Engineer SCRUM Agile Process Engineer

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>