+ Reply to Thread
Results 1 to 3 of 3

Dependent Combobox code generating error

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2007
    Posts
    14

    Dependent Combobox code generating error

    Hi! I have an issue with a ActiveX Combo box that is dependent on the value of another ActiveX Combo box. I do not have much experience with combo boxes, so any suggestions would be helpful. I need to be able to populate the combo box in this manner due the data being dynamic, and this entire spreadsheet will be a template for a dashboard.

    Basically, I am wanting to have the VBA compare the value of the first combo box (cmbFuncKey) to a Range of cells in another sheet. If the value of the combo matches c.value the add the cell to right to the second combo box (cmbFuncName). Problem is, I am getting a Run time 70 "Permission denied" error.



    Is this a reference issue? Am I supposed to set a reference for this type of code?

    Any help would be much appreciated.

    Here is the code:

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Dependent Combobox code generating error

    Check out the example found here.
    http://www.davesexcel.com/dependentcombobox.htm

  3. #3
    Registered User
    Join Date
    10-18-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Dependent Combobox code generating error

    Thank you Davesexcel! I am checking that out now. Will let you know if it solves my problem!

+ 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. excel VBA Code for dependent combobox
    By perrymagic in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-11-2011, 05:32 PM
  2. Combobox generating from another Combobox - Userform!
    By baisty182 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2010, 06:17 AM
  3. 1004 Error:VB code to restrict the use of a combobox
    By bernie_bolt_sa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2008, 09:55 AM
  4. ComboBox Code Error
    By Phil H in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-14-2006, 02:46 AM
  5. [SOLVED] Macro code error; machine dependent
    By SJC in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-01-2006, 12:35 PM

Tags for this Thread

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