+ Reply to Thread
Results 1 to 6 of 6

clear password protected combo

  1. #1
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    clear password protected combo

    I have a combo box that is a list of names. When a EE chooses their name they must also enter their password. at the end of a batch I have a button that clears cells. I put in this code
    HTML Code: 
    to clear the combo box, but it ask for password befor clearing. how do i stop it from asking for password or how do i creat a macro that hits enter key?

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: clear password protected combo

    Is your sheet password protected ?
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: clear password protected combo

    In the sheets Open event, you should password protect it using the UserInterfaceOnly option. Set properly, your code will then not need to get and set the sheet password.

    e.g.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Re: clear password protected combo

    Sheet is, but thats not whats causing the issue. Its the names that require a password to select it also requires it to clear.

  5. #5
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: clear password protected combo

    Post a simple workbook showing the issue and include any passwords.

    By the way, I would not name a combobox the same as a range.

  6. #6
    Forum Contributor
    Join Date
    07-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    351

    Re: clear password protected combo

    How is the password applied to the combobox? Does
    Please Login or Register  to view this content.
    on the combobox change event do anything for you?

    If so, declare a Boolean, set it to True on your clear button click, then on combobox change event, write an If statement. If that boolean is true, then application.displayalerts = False, else .displayalerts = True
    Last edited by VBA FTW; 12-16-2013 at 05:01 PM.

+ 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. Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  2. Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  3. Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  4. Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. Replies: 1
    Last Post: 06-23-2005, 08: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