Results 1 to 3 of 3

Thread: CheckBox1

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    50

    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?

  2. #2
    Frenzied Member zaza's Avatar
    Join Date
    Apr 2001
    Location
    Borneo Rainforest Habits: Scratching
    Posts
    1,486

    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

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    50

    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
  •  



Click Here to Expand Forum to Full Width