Results 1 to 7 of 7

Dynamic Row source for Combo box on Userform.

Threaded View

  1. #1
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Dynamic Row source for Combo box on Userform.

    hello forum,

    i had been trying for some time about providing rowsource for a combo box on a userform.tried with the below code for updating combo box when there are values in the next column.

    Private Sub UserForm_Initialize()
       With Sheets("Sheet1")
            With ComboBox1
               .RowSource = Sheet1.Range("rngDynamic").Address
                .ListIndex = 0
             End With
      End With
    End Sub
    rngdynamic : =OFFSET(Sheet1!$A15,0,0,COUNTA(Sheet1!$A:$A),1)

    Where the rngdynamic implies the Named Range in the worksheet SHEET1 .my requirement is to update the combo box with the rowsource when there is data in the next column of the existing column...
    Please help me where i m missing the code....
    Last edited by excelkeechak; 04-15-2012 at 09:59 PM.
    THANKS
    ExcelKeechak

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