Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default ToggleButton Capton

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!!!!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 515
Default ToggleButton Capton

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


"Paul W Smith" wrote:

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!!!!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default ToggleButton Capton

Hi Paul,

ActiveSheet.ToggleButton1.Caption = "My New Caption"

--
Regards,

OssieMac


"Paul W Smith" wrote:

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!!!!



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default ToggleButton Capton

Try ActiveSheet.ToggleButton1.Caption

If this post helps click Yes
---------------
Jacob Skaria


"Paul W Smith" wrote:

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!!!!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
togglebutton to act like optionbutton ranswrt Excel Programming 3 July 24th 08 02:13 PM
Togglebutton ranswrt Excel Programming 4 July 23rd 08 11:29 PM
Togglebutton ranswrt Excel Programming 0 July 23rd 08 10:27 PM
Help with togglebutton that displays jpg caj Excel Discussion (Misc queries) 2 March 7th 07 02:44 PM
need help with togglebutton Gary Keramidas[_2_] Excel Programming 7 July 9th 05 04:15 PM


All times are GMT +1. The time now is 10:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"