Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default series of Checkboxes to select worksheet's data


hi,

Can anyone help me with this problem?

I have a series of checkboxes on one form which allow user to select
any mixture of checkbox and click on the generate button to transfer
the selected worksheet's data on to a consolidated worksheet.


How do i write a code to extract the series of checkboxes selected and
perform certain action.

Thank you,

Regards,
Bruce


--
brucelim80
------------------------------------------------------------------------
brucelim80's Profile: http://www.excelforum.com/member.php...o&userid=32244
View this thread: http://www.excelforum.com/showthread...hreadid=526330

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default series of Checkboxes to select worksheet's data

Bruce,

Here is how to test all the checkboxes, assuming that it is Forms toolbar
checkboxes

Sub Macro1()
Dim cb As CheckBox
For Each cb In ActiveSheet.CheckBoxes
If cb.Value = 1 Then
Debug.Print cb.Name
End If
Next cb
End Sub

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"brucelim80" wrote
in message ...

hi,

Can anyone help me with this problem?

I have a series of checkboxes on one form which allow user to select
any mixture of checkbox and click on the generate button to transfer
the selected worksheet's data on to a consolidated worksheet.


How do i write a code to extract the series of checkboxes selected and
perform certain action.

Thank you,

Regards,
Bruce


--
brucelim80
------------------------------------------------------------------------
brucelim80's Profile:

http://www.excelforum.com/member.php...o&userid=32244
View this thread: http://www.excelforum.com/showthread...hreadid=526330



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default series of Checkboxes to select worksheet's data


hi again,
Thank for your help. However, it seem that it cant work.
The form i am referring to is a VBA form which you create under the
viual basic script editor.

Thank


--
brucelim80
------------------------------------------------------------------------
brucelim80's Profile: http://www.excelforum.com/member.php...o&userid=32244
View this thread: http://www.excelforum.com/showthread...hreadid=526330

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default series of Checkboxes to select worksheet's data

Dim ctl As Control
For Each ctl In Me.Controls
If TypeName(ctl) = "CheckBox" Then
Debug.Print ctl.Name
End If
Next ctl


--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"brucelim80" wrote
in message ...

hi again,
Thank for your help. However, it seem that it cant work.
The form i am referring to is a VBA form which you create under the
viual basic script editor.

Thank


--
brucelim80
------------------------------------------------------------------------
brucelim80's Profile:

http://www.excelforum.com/member.php...o&userid=32244
View this thread: http://www.excelforum.com/showthread...hreadid=526330



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default series of Checkboxes to select worksheet's data


hi ,
Thank for your help. sorry i need your help again.

How do i display those that have been ticked instead of all the
checkboxes? I had tried your code and it display all the name of the
checkbox.


--
brucelim80
------------------------------------------------------------------------
brucelim80's Profile: http://www.excelforum.com/member.php...o&userid=32244
View this thread: http://www.excelforum.com/showthread...hreadid=526330

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 select multiple data series in Excel? Minsu Charts and Charting in Excel 4 April 3rd 23 06:49 PM
how to select multiple data series in a chart? REER Charts and Charting in Excel 1 November 5th 09 12:54 AM
Select All checkboxes Nikki Excel Discussion (Misc queries) 5 June 4th 08 12:47 AM
How to select data series to format? (alternative needed) [email protected] Charts and Charting in Excel 2 April 20th 06 08:53 PM
How to select checkBoxes as a group in Fendic[_3_] Excel Programming 1 June 7th 05 02:43 AM


All times are GMT +1. The time now is 07:33 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"