OLEObject Button Caption

  • Thread starter Thread starter June
  • Start date Start date
J

June

I have an OLEOBject with a button in it. How can I change the caption of
this in VBA?
 
activesheet.oleobjects("CommandButton1").object.caption="Bob"


--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Bob
Thanks again for the response. My issue goes a little further in that the
caption that I want to change is a button within the OLEObject. E.g.

activesheet.oleobjects("CommandButton1").object.cmdButton.caption="Bob"

Regards
June
 
Do you want to pass that through me again? This is the object within the
OLEObject.

What exactly have you created?

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Back
Top