+ Reply to Thread
Results 1 to 23 of 23

Locking list boxes

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Locking list boxes

    Hello,

    I am modifying a form that was created on a Worksheet (not a User Form), and have placed several list boxes on the form. For some odd reason, several of the list boxes appear to be locked after I reset the form, somewhat randomly. it seems to be the same several list boxes that do it, but some do it more than others. I have made sure they weren't locked in properties, but they seem to do it slightly less when I change it to locked in properties. I have made sure that no cells touching the list boxes are locked when protected. If anyone can help I would greatly appreciate it!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Locking list boxes

    What do you mean 'locked'?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Locking list boxes

    When I click on it nothing happens.

  4. #4
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Locking list boxes

    I'm just really confused n why this happens with some of them, but not others.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Locking list boxes

    How are you populating the listboxes?

    Can you upload an example workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

  6. #6
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Locking list boxes

    I don't think I am allowed to do that at work, but I will check to see. I am loading them using a hidden cell range. BN14:BN15, for example.

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Locking list boxes

    There's only 2 items in the listboxes?

  8. #8
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Locking list boxes

    Here is the sample. The list boxes titled "Full Baths", "Adverse Factors", and "Beneficial Factors" seem to be the biggest problems. If they work the first time, click on RESET FORM at the top and they will likely not permit clicking. The password is Aw_2012. Thanks!!
    Attached Files Attached Files

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Locking list boxes

    They work fine for me as long as I'm not in Design Mode.

    You can toggle Design Mode on and off on the Developer tab.

  10. #10
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Locking list boxes

    Can you try it a few times? Even when not in design mode, they lock for me after reset almost every time.

  11. #11
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Locking list boxes

    I have tried it a few times and the only time the listboxes appeared locked was when I first opened the file.

    When I toggled Design Mode they all started working normally even after clicking the reset button.

    Mind you there is something strange going on, when I go into Design mode, right click a listbox and select Properties then the property sheet is blank.

    I think that might be because the VBA project is locked though.

    By the way, do you have any protection on the sheet/workbook?

    PS Can the user make more than one selection in the listboxes?

  12. #12
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Locking list boxes

    Can you confirm that you were clicking the list boxes under the Adverse and Beneficial Factors labels? They seem to be the biggest offenders.

    To get rid of the blank properties you have to click Developer/Controls/View Code and type in the password Aw_2012. I guess the VBA protects separate from the worksheet. I turned off the worksheet protection before sending, and it should only trigger if you click the copy comments button. The list boxes are set to only allow one selection.

  13. #13
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Locking list boxes

    I tried all the listboxes, including the those for Adverse and Beneficial Factors.

    I've also had a quick look at the code and I can't see anything that could be causing the problem.

  14. #14
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Locking list boxes

    Weird. I've had others in office check and it is also happening to them. Do you think it could be a difference between Excel '07 (what I'm using) and '10?

  15. #15
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Locking list boxes

    I'm using Excel 2010 and I'm also getting the locked listboxes

    Also I can't think of any version changes/differences that could cause the problem.

  16. #16
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Locking list boxes

    Oh, I thought you said you weren't getting them. This is so strange and frustrating. People are counting on me to get this done. I'm right there at the end and may have to scrap the whole thing and start over

  17. #17
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Locking list boxes

    No I am getting them when the workbook first opens but if I flip in and out of design mode everything is fine.

  18. #18
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Locking list boxes

    Yeah it seems if I do something to "trick" it, like change a setting in the properties, it works at least once before resetting. However, this will be used by 100 people so I can't have it be like that. I do really apprecaite you taking the time to help though.

  19. #19
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Locking list boxes

    Did you change any of the 'default' property settings for the listboxes?

  20. #20
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Locking list boxes

    I've changed IntegralHeight, MatchEntry and Locked.

  21. #21
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Locking list boxes

    Not sure if they would have any bearing on the problem but when I get home I'll have another look.

  22. #22
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Locking list boxes

    Thank you, I appreciate it!

  23. #23
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Locking list boxes

    Is it possible to put something in the reset code that will make the list boxes activate? I'm guessing that only one at a time can be activated, but maybe there is something that can be put in the code to help?

    Currently I'm using this to reset them:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Locking check boxes in position
    By cadence72 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2013, 07:37 AM
  2. Tabbing between text boxes and locking all else.
    By Rahn in forum Excel General
    Replies: 0
    Last Post: 06-21-2006, 05:49 PM
  3. locking a sheet with drop-boxes
    By frances in forum Excel General
    Replies: 1
    Last Post: 06-07-2006, 12:40 PM
  4. [SOLVED] locking check boxes using a macro
    By Erik Andreassen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-24-2005, 03:05 PM
  5. [SOLVED] Locking Text Boxes in a Form using VBA
    By Jack Gillis in forum Excel General
    Replies: 2
    Last Post: 06-02-2005, 10:05 PM

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