+ Reply to Thread
Results 1 to 3 of 3

Excel Userform to utlize only visible cells in a combobox

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Excel Userform to utlize only visible cells in a combobox

    I have a userform that utilizes a named range in a worksheet named "Files" to display images in it (worksheet contains path and name of images) . The named range is used as the "RowSource" for the combobox (cmbImg). How do I set it up so that it only display visible cells? When I prefer an Autofilter, it still shows all images.

    Code is below..

    Please Login or Register  to view this content.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Excel Userform to utlize only visible cells in a combobox

    You can't use RowSource for this application. You have to use the .AddItem method.
    Put this code snippet in the Intialize event

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Re: Excel Userform to utlize only visible cells in a combobox

    I am getting a "Run Time Error 438...Object doesn't support this property or method"..I changed the code to say
    Please Login or Register  to view this content.
    . Unfortunately, it is not highlighting the line with the error. Any ideas? Thanks.

+ 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. Copy visible cells in filtered table and paste in userform textbox - email
    By pfeifferjoey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-29-2014, 11:23 AM
  2. [SOLVED] Combobox used to direct userform to populate certain cells
    By cath1509 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2013, 11:02 PM
  3. Replies: 7
    Last Post: 11-20-2013, 01:50 PM
  4. [SOLVED] Excel Userform: Populate other controls (i.e. textbox & combobox) based on combobox select
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2013, 04:50 PM
  5. Combobox remains visible as scroll down Excel sheet
    By crow in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-29-2012, 07:32 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