Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Please Help!checkbox relative reference

I have about 400 checkboxes on multi tabs of a multi tab control.
They are named/set up as follows:

CheckBoxA CheckBoxB CheckBoxC
CheckBoxD CheckBoxE CheckBoxF.....

I set up code to ensure that if CheckBoxA is Checked, CheckBoxB and
will be unchecked etc. (see below)

My problem is, I don't want to write code for each CheckBox's OnClic
Event. I want to know if there is a way to reference the CheckBoxe
around the current checkbox using some type of relative reference.

My current code is:

Private Sub CheckBoxA_Click()
If CheckBoxA = True Then
CheckBoxB.Value = Not CheckBoxA.Value
CheckBoxC.Value = Not CheckBoxA.Value
End If
End Sub

If anyone can help me modify this to make my life easier, I would b
sooooo appreciative.

Thanks

--
Message posted from http://www.ExcelForum.com

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
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
relative reference Swannybuck Excel Discussion (Misc queries) 1 July 26th 06 09:28 PM
Relative Reference Barry Givens via OfficeKB.com Excel Discussion (Misc queries) 3 December 17th 04 07:31 PM
relative reference nix2004 Excel Programming 3 April 20th 04 07:18 PM
relative reference Duce Excel Programming 1 October 24th 03 09:44 PM


All times are GMT +1. The time now is 11:07 PM.

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"