+ Reply to Thread
Results 1 to 5 of 5

Run-time error'70' : Permission denied with ComboBox_Change()

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2013
    Posts
    34

    Run-time error'70' : Permission denied with ComboBox_Change()

    I have two ComboBoxes in Excel (ContractTypeComboBox & PositionComboBox), and I need the 2nd ComboBox (PositionComboBox) to populate dynamically based on each of the selection in the 1st ComboBox (ContractTypeComboBox), which is based on a table I have setup on another worksheet (Tables).

    However, I keep getting the "Run-time error'70' : Permission denied.", when selecting any of the options in the ContractTypeComboBox.

    Please can somebody help. I have pasted the code below :

    Please Login or Register  to view this content.

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

    Re: Run-time error'70' : Permission denied with ComboBox_Change()

    Are you, or have you, populated the problem combobox using the RowSource property?

    If you have either clear the propery manually or add this to the code before you try using AddItem.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-04-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Run-time error'70' : Permission denied with ComboBox_Change()

    It was originally populated using ListFillRange, which I have now removed. I have tried using
    Please Login or Register  to view this content.
    before AddItem, but receive the following error message : "Run-time error '438' : Object doesn't support this property or method."

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

    Re: Run-time error'70' : Permission denied with ComboBox_Change()

    Oops, thought you were on a userform.

    Does it work after you remove ListFillRange?

  5. #5
    Registered User
    Join Date
    07-04-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Run-time error'70' : Permission denied with ComboBox_Change()

    Yes, and with adding an IF statement within each of the For Each Loops to check if each cell in the range contains a certain value. An example is copied here for completeness :

    Please Login or Register  to view this content.
    Thanks for your help!

+ 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: 1
    Last Post: 06-11-2015, 11:12 PM
  2. Replies: 1
    Last Post: 06-11-2015, 10:58 PM
  3. Run-time error '70': Permission denied
    By Arvin.Amaro in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-09-2015, 08:24 AM
  4. Run time error 70 Permission denied.
    By sagar.rajula in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-10-2013, 11:50 AM
  5. error 70 - Permission denied
    By MT in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2005, 03:06 AM
  6. [SOLVED] Run-Time error "70" Permission Denied
    By Audrey in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-04-2005, 06:07 PM
  7. Run-time error '70': Permission denied
    By Maury Markowitz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-12-2005, 05:06 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