|
-
Jan 16th, 2006, 10:10 AM
#1
Thread Starter
Member
CheckBox1
When adding a check box do you have to intially declare it prior to 1st run of code after adding a check box?
I have just added a check box to a user form and VBA didn't recognise it. I declared it as a variable and suddenly VBA recognised all the lables, check boxex and associated text boxs.
Why does this happen?
-
Jan 16th, 2006, 12:56 PM
#2
Re: CheckBox1
Does it then cease to recognise it if you remove the declaration, or was it just having trouble in the first place? I myself have had experience of dodgy controls on Userforms in VBA (not associating code, for example) that required an Office restart to cure...
zaza
-
Jan 17th, 2006, 04:20 AM
#3
Thread Starter
Member
Re: CheckBox1
I can remove the declaration but it is still recognised.
I can only assume that as it is on the user form it is stored when intially used.
Can be a bit confusing when entering the check box name in the script and it isn't recognised. But now I know....................
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|