+ Reply to Thread
Results 1 to 4 of 4

User form combo box

  1. #1
    Registered User
    Join Date
    05-23-2014
    Posts
    1

    User form combo box

    Hi,

    Please can someone help, i'm trying to create a combobox with the list "buy and sell" but keep getting the error message "run-time error 70: permission denied".

    Please Login or Register  to view this content.
    Last edited by Fotis1991; 05-24-2014 at 03:44 AM. Reason: pls use code tags around your codes

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: User form combo box

    If your combobox is inserted in a worksheet, try this macro that you will place in specific sheet in VBE
    Please Login or Register  to view this content.
    It will trigger every time the sheet is activated. It could also be placed in ThisWorkbook section and be triggered by the workbook openning (Private Sub Workbook_Open())

    If you are using your combobox in a userform, you should put this code in "Private Sub UserForm_Initialize()"
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: User form combo box

    If your combobox is inserted in a worksheet, try this macro that you will place in specific sheet in VBE
    Please Login or Register  to view this content.
    It will trigger every time the sheet is activated. It could also be placed in ThisWorkbook section and be triggered by the workbook openning (Private Sub Workbook_Open())

    If you are using your combobox in a userform, you should put this code in "Private Sub UserForm_Initialize()"

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

    Re: User form combo box

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ 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. combo box user form code for two combo boxes
    By robert.begley1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-01-2012, 02:25 PM
  2. combo box user form
    By robert.begley1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2012, 03:38 PM
  3. help with user form and combo box
    By TechRetard in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-01-2011, 04:56 AM
  4. [SOLVED] combo box in a user form
    By juliejg1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-10-2006, 04:20 PM
  5. Can't seem to get Combo Box on User Form
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-25-2005, 07:06 AM

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