ToggleButton Capton

P

Paul W Smith

What is the correct way to reference a ToggleButtom from a code module?

I can write code to reference and change the caption property from within
the worksheet object, but cannot seem to find the right way to reference the
control from a code module.

From worksheets:

TobbleButton1.capton = "New"

From a code module:

Activesheet.shapes("ToggleButton1").select works,

but

Activesheet.shapes("ToggleButton1").capton = "New"

does not!!!!
 
K

Kassie

You possibly misspelt caption, same as in your post?

capton is not a recognised command, so it will not work, but should also
result in a runtime error.

--
HTH

Kassie

Replace xxx with hotmail
 

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