Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Checkbox List in VBA?

does Excel has CheckboxList object like the ones in normal VB?

i need to provide different number of checkboxes options based on
different cases. (E.g: case 1, i need to display 6 checkboxes, case 2
i need to display 11. both cases with different captions of course).
Of course i can do it in tedious way to create one individual checkbox
for each case, but i'm curious about it. It could save time and the
code will be neater as well:)

regards

freddie
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Checkbox List in VBA?

Excel does not have a control array like VB if that is what you mean.

Rather than build/destroy objects, you could always create the maximum, and
hide and show as required.

--

HTH

RP

"Freddie" wrote in message
om...
does Excel has CheckboxList object like the ones in normal VB?

i need to provide different number of checkboxes options based on
different cases. (E.g: case 1, i need to display 6 checkboxes, case 2
i need to display 11. both cases with different captions of course).
Of course i can do it in tedious way to create one individual checkbox
for each case, but i'm curious about it. It could save time and the
code will be neater as well:)

regards

freddie



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Checkbox List in VBA?

Hi,

Try setting these 2 properties on a listbox,

MultiSelect = 1 (SelectMulti) or 2 (SelectExtend)
ListStyle = 1 (ListstyleOption)

The use of multiselect will cause the normal optionbuttons to change to
checkbox buttons.

Cheers
Andy

Bob Phillips wrote:

Excel does not have a control array like VB if that is what you mean.

Rather than build/destroy objects, you could always create the maximum, and
hide and show as required.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
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
How to have Checkbox A uncheck with checked Checkbox B Texas Aggie Excel Discussion (Misc queries) 3 July 20th 07 10:58 PM
checkbox helpless101 Excel Worksheet Functions 0 April 10th 06 11:52 AM
checkbox help dok112[_25_] Excel Programming 1 August 12th 04 06:59 AM
CheckBox in VBA Stephane[_3_] Excel Programming 2 April 20th 04 09:28 PM
checkbox mark Excel Programming 1 August 1st 03 09:47 PM


All times are GMT +1. The time now is 10:40 PM.

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

About Us

"It's about Microsoft Excel"