+ Reply to Thread
Results 1 to 4 of 4

filling a form combobox

  1. #1
    Registered User
    Join Date
    09-24-2003
    Posts
    62

    filling a form combobox

    I am trying to fill a combobox20 with cells in column(AB) that are Not empy with the module below.

    Please Login or Register  to view this content.
    I call the module from userform_intialize and sometimes in the coding as the from is being updated with

    Please Login or Register  to view this content.
    there are other comboboxes on my form that fill correctly, but I think it has to do with some of the cells in col(AB) are empty.

    anyone have an idea?

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Try fully qualifying the range, as in
    Please Login or Register  to view this content.
    Without the . before Range, then With..EndWith doesn't do anything.

  3. #3
    Registered User
    Join Date
    09-24-2003
    Posts
    62
    Wow! great thanks!!

    I see the difference between the two. I have never really understood the meaning of the .row at the end of the range.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    someRange.Row returns the row number of the upper left cell of someRange.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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