+ Reply to Thread
Results 1 to 4 of 4

Userform detail

  1. #1
    Registered User
    Join Date
    07-09-2008
    Location
    UK
    Posts
    20

    Userform detail

    Hi guys,

    I am looking to put a bit of code into my userform so that if I tick a checkbox and go to the next form, but then hit cancel on the next form and return to the first form, the checkbox can then be un-ticked.

    The code I am using so far for the first form checkbox is simply:
    Please Login or Register  to view this content.
    and for the second form cancel button:
    Please Login or Register  to view this content.
    So, in other words, I am looking for the code to go into the second form cancel box to uncheck the checkbox in the first form.

    Any takers would be much appreciated!!

    Cheers,

    Alex

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Alex,

    To reference another control on another UserForm, You need to qualify it with the name of the other UserForm and that UserForm must be loaded. Change the names of UserForm and CheckBox to match yours.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Why not use a multipage control on the userform 7 then you wouldn't need multiple forms.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    07-09-2008
    Location
    UK
    Posts
    20
    Hi leigh,

    When I use the code:
    Please Login or Register  to view this content.
    I'm getting the error message:

    "Run Time Error 400. Form already displayed; Can't show modally"

    I was wondering if you know how I can fix this?!

    Further to this, if I re-write the code as:
    Please Login or Register  to view this content.
    then I dont get an error message and the box dose un-check, but it takes 2 clicks to complete the actions, rather than one...

    Cheers,

    Alex

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1