ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   using vba to change command button caption (https://www.excelbanter.com/excel-programming/358115-using-vba-change-command-button-caption.html)

PaulaO

using vba to change command button caption
 
I need to know how to use vba to change the caption in a command button on an
excel spreadsheet. Any assistance would be appreciated.

Paula

[email protected]

using vba to change command button caption
 
CommandButton1.Caption = "Your Text Here"


Rick R.

using vba to change command button caption
 
Assuming you know how to get to the code window, the code would be:

commandbutton1.caption = "xxxxxxxxx"

"PaulaO" wrote:

I need to know how to use vba to change the caption in a command button on an
excel spreadsheet. Any assistance would be appreciated.

Paula



All times are GMT +1. The time now is 01:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com