PC Review


Reply
Thread Tools Rate Thread

Checkbox Name Change?

 
 
J.W. Aldridge
Guest
Posts: n/a
 
      9th Aug 2007
I have a long list of words of which I would like to use as checkbox
names. Instead of the name "checkbox 1", "checkbox 2", etc... Is there
any way I can automatically change these names to the words in my
list? (without having to go through edit text / or click on each
individual name)

Looking for the quickest way to get this done.

Thanx.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      9th Aug 2007
Are your checkboxes from the forms toolbar or from the control toolbox?
--
HTH...

Jim Thomlinson


"J.W. Aldridge" wrote:

> I have a long list of words of which I would like to use as checkbox
> names. Instead of the name "checkbox 1", "checkbox 2", etc... Is there
> any way I can automatically change these names to the words in my
> list? (without having to go through edit text / or click on each
> individual name)
>
> Looking for the quickest way to get this done.
>
> Thanx.
>
>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      9th Aug 2007
A simple two namer,

Sub ChangeNames()
Dim cb As Object
Dim i As Long
Dim aryNames

aryNames = Array("Domestic", "Commercial")
For Each cb In ActiveSheet.CheckBoxes
cb.Caption = aryNames(i)
i = i + 1
Next cb
End Sub


extend as required.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"J.W. Aldridge" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a long list of words of which I would like to use as checkbox
> names. Instead of the name "checkbox 1", "checkbox 2", etc... Is there
> any way I can automatically change these names to the words in my
> list? (without having to go through edit text / or click on each
> individual name)
>
> Looking for the quickest way to get this done.
>
> Thanx.
>



 
Reply With Quote
 
J.W. Aldridge
Guest
Posts: n/a
 
      10th Aug 2007
Inserted from forms toolbar


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Checkbox does not change Stefan Hoffmann Microsoft Access 0 17th Jul 2009 01:23 PM
checkbox value change pv78 Microsoft Excel Programming 4 16th Aug 2006 04:49 PM
How can I change the value of checkbox using VBA? =?Utf-8?B?UklQ?= Microsoft Access VBA Modules 1 24th Apr 2006 11:06 AM
Master-Detail Datagrid -checkbox (once tick the checkbox, all the child checkbox is ticked) Agnes Microsoft VB .NET 0 16th Aug 2004 11:23 AM
Change checkbox value... Kazoo Microsoft Excel Worksheet Functions 2 22nd Oct 2003 11:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:08 PM.