+ Reply to Thread
Results 1 to 9 of 9

store all item from combobox list to range

  1. #1
    Registered User
    Join Date
    07-02-2019
    Location
    Surabaya, Indonesia
    MS-Off Ver
    Ms. Office 2007
    Posts
    8

    store all item from combobox list to range

    how to store all item/list inside combobox to spesific range in worksheet, i use this code but doesn't work at all, i thought i missing something there...

    Please Login or Register  to view this content.
    Last edited by petroes; 04-12-2020 at 04:04 AM. Reason: dont know about rule number 2

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: store all item from combobox list to range

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-02-2019
    Location
    Surabaya, Indonesia
    MS-Off Ver
    Ms. Office 2007
    Posts
    8

    Re: store all item from combobox list to range

    thanks, i'll fix it

  4. #4
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: store all item from combobox list to range

    Quote Originally Posted by petroes View Post
    i use this code but doesn't work at all
    What do you mean by "doesn't work at all"? Can you describe that in a little more detail (error number and error message would be helpful as a start). Also it would help to see all of the code that the line of code you posted came from.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: store all item from combobox list to range

    When writing combobox items to worksheet it's mandatory to seize the target area correctly.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  6. #6
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: store all item from combobox list to range

    A little more compact...
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-02-2019
    Location
    Surabaya, Indonesia
    MS-Off Ver
    Ms. Office 2007
    Posts
    8

    Re: store all item from combobox list to range

    i mean nothings happened...

  8. #8
    Registered User
    Join Date
    07-02-2019
    Location
    Surabaya, Indonesia
    MS-Off Ver
    Ms. Office 2007
    Posts
    8

    Re: store all item from combobox list to range

    Quote Originally Posted by Rick Rothstein View Post
    A little more compact...
    Please Login or Register  to view this content.
    thanks rick thats work

  9. #9
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: store all item from combobox list to range

    Quote Originally Posted by petroes View Post
    thanks rick thats work
    You are quite welcome. In Message #7 you said "I mean nothing happened" which I think you were directing at bakerman2... I just want to point out that if my code worked then bakerman2's code should also have worked since my code and his are structured identically (all I did was simplify his arguments to the Resize property call, but his should have also worked for you as well).

+ 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. Store dictionary range as item not working after closing workbook source
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-09-2019, 05:40 AM
  2. Combobox list item by group name
    By omegaboost in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2016, 09:58 AM
  3. Combobox Dropdown List only shows first Item
    By Guido Meng in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 09:49 PM
  4. Choose more than one Item from a Combobox/Drop List
    By Michelle_En in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2012, 03:50 PM
  5. How to load a one-item list to a ComboBox
    By skysurfer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-13-2010, 06:30 PM
  6. [SOLVED] combobox list item with superscript
    By boyze in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2006, 01:15 PM
  7. [SOLVED] Automated Delete Item from ComboBox List
    By ToferKing in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-23-2006, 02:50 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