Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default For loop for Checkbox

In addition to the excellent advice given so far,
Take a look at this page as well:

http://j-walk.com/ss/excel/tips/tip44.htm
Handle Multiple UserForm Buttons With One Subroutine


It is written for commandbuttons, but can be adapted for checkboxes as well.

John Walkenbach's site.

--
Regards,
Tom Ogilvy


Ali Emre Hortacsu wrote in message
...
Hi there
I've about 30 checkboxes
I want all of them to do the same set of instructions
that I've given to Private Sub CheckBox1_Click()
something like this:

If CheckBox1.Value = True Then
CheckBox1.Caption = "Avaliable"
End If
If CheckBox1.Value = False Then
CheckBox1.Caption = "Not Avaliable"
Dim Who, Title, Person, MyDate, When
Who =.......

I've tried for loop but had some obvious problems with
the coding and the variables....

any help appriciated.

THanks



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
Find loop doesn't loop JSnow Excel Discussion (Misc queries) 2 June 24th 09 08:28 PM
How to have Checkbox A uncheck with checked Checkbox B Texas Aggie Excel Discussion (Misc queries) 3 July 20th 07 10:58 PM
checkbox? rwijnia Excel Worksheet Functions 4 November 3rd 05 07:40 PM
checkbox Chas Excel Worksheet Functions 2 May 13th 05 10:37 PM
For loop for Checkbox Jake Marx Excel Programming 0 August 27th 03 12:23 AM


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