+ Reply to Thread
Results 1 to 8 of 8

Remove/Hide option from combobox list item

  1. #1
    Registered User
    Join Date
    03-17-2016
    Location
    Glasgow, Scotland
    MS-Off Ver
    2014
    Posts
    4

    Remove/Hide option from combobox list item

    Hi,

    I am developing a small app for my office. we have a Laptop borrowing pool and I have a small user form with a number of details including a combobox linking to a sheet with an array of loanable items.

    I'm looking to hide or grey out each item as a user 'borrows' it. I would also like someway of resetting this option when it is returned, a button on the spread sheet, or form, only accessible by certain individuals would be ideal.

    I'm just wondering if something of this ilk is doable and if so, how do I go about it?

    Thanks!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Remove/Hide option from combobox list item

    Easier to provide a solution for this sort of thing if we can see what you have so far.
    Any chance you could post the workbook? Desensitize names, numbers etc. if necessary.

    BSB

  3. #3
    Registered User
    Join Date
    03-17-2016
    Location
    Glasgow, Scotland
    MS-Off Ver
    2014
    Posts
    4

    Re: Remove/Hide option from combobox list item

    Hi,

    I have attached the project I am currently working on. You can see I am fairly new to VBA. haha

    Cheers

    Gordon
    Attached Files Attached Files
    Last edited by Gordon1985; 03-17-2016 at 09:03 AM.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Remove/Hide option from combobox list item

    Do you record anywhere that a piece of equipment was returned?

    If you did then you could use that to build a dynamic list on your "Resource" sheet, then use that to populate the ComboBox rowsource.

    BSB

  5. #5
    Registered User
    Join Date
    03-17-2016
    Location
    Glasgow, Scotland
    MS-Off Ver
    2014
    Posts
    4

    Re: Remove/Hide option from combobox list item

    At current, no. Although this is something that I have been trying to implement. I was thinking about deleting the item from resource worksheet when the user selects it and having a button next to each item that will repopulate the field. A sort of manual 'returned' button if that makes sense.

    I think having a way to return the item on the form may be a good idea. I will look into that.

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Remove/Hide option from combobox list item

    If the "Scots ID" is unique then you could add a function to recall details of an equipment loan based on that then have another field on the UserForm to add the "Returned Date" and update the relevant row. Combined with my earlier suggestion you could make this work without too much fussing around.

    Unfortunately I'm unable to show you what I mean as your form uses the Date Picker and I do not have that available on my machine, so the form doesn't work for me.

    BSB

  7. #7
    Registered User
    Join Date
    03-17-2016
    Location
    Glasgow, Scotland
    MS-Off Ver
    2014
    Posts
    4

    Re: Remove/Hide option from combobox list item

    Thanks,

    It sounds like that's the way to go. I only touched on VB stuff in Uni and that was a while ago so I'll go away and test my google skills.

    Cheers

    Gordon

  8. #8
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Remove/Hide option from combobox list item

    Good luck with it.
    Feel free to shout for help if you need. That's what we're here for

    BSB

+ 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] userform combobox remove a certain item
    By hopefulhart in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-20-2014, 11:05 PM
  2. [SOLVED] Remove current item on combobox
    By MarmaladeLover in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-29-2014, 09:08 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. 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
  5. Remove Item in a combobox
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2009, 08:19 AM
  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

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