+ Reply to Thread
Results 1 to 4 of 4

Additem to OLEobject combobox

  1. #1
    Registered User
    Join Date
    06-03-2014
    MS-Off Ver
    2007
    Posts
    87

    Additem to OLEobject combobox

    Hi,

    So I'm basically trying to additems to a ComboBox and I had little success to say the least. Here is my code :

    Please Login or Register  to view this content.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Additem to OLEobject combobox

    This worked for me.
    Change "test" to Userform 2 values
    Please Login or Register  to view this content.
    Regards Mick

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

    Re: Additem to OLEobject combobox

    The code works fine for me if I remove the ( in front of Userform2.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    06-03-2014
    MS-Off Ver
    2007
    Posts
    87

    Re: Additem to OLEobject combobox

    It works perfectly. Thank you.

    In a relative matter,
    Is there a way to automaticly add a code in a new worksheet. Let me rephrase that :

    When I create a new sheet, some change events codes are already incorporated into it? Is there a way to make that happen?

  5. #5
    Registered User
    Join Date
    06-03-2014
    MS-Off Ver
    2007
    Posts
    87

    Re: Additem to OLEobject combobox

    Quote Originally Posted by SIMBAtheCAT View Post
    It works perfectly. Thank you.

    In a relative matter,
    Is there a way to automaticly add a code in a new worksheet. Let me rephrase that :

    When I create a new sheet, some change events codes are already incorporated into it? Is there a way to make that happen?
    Bump! Thank you for the help, it's appreciated.

+ 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. [SOLVED] set string as the current selected item in oleobject combobox
    By jed38 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 11-29-2013, 11:21 AM
  2. ComboBox AddItem will repeat the list
    By Siops in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2012, 12:15 PM
  3. Combobox using .additem "Permission Denied"
    By Schwizer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2007, 05:48 AM
  4. unique text additem combobox
    By CG Rosén in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2005, 11:05 AM
  5. additem to combobox with an array
    By jocke in forum Excel General
    Replies: 2
    Last Post: 09-29-2005, 02:56 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