+ Reply to Thread
Results 1 to 3 of 3

Combobox indirect lookup

  1. #1
    Registered User
    Join Date
    09-17-2014
    Location
    Telford
    MS-Off Ver
    2010
    Posts
    12

    Combobox indirect lookup

    HI, I am being skirting around VBA for years and this is my first real attempt using it and Userforms.

    I need a Combobox that will lookup a list based on information calculated within the spread-sheet. If I was to use excel and Data validation I would put the formula =indirect(Cell Ref). Below is the code and what I have attempted, I am stuck on "Printspeccombobox" part.

    Hopefully you can see what I am trying to accomplish. Thanks

    Private Sub UserForm_Initialize()

    'Empty Stockcodetextbox
    stockcodetextbox = ""

    'Empty Finishingcombobox
    finishingcombobox.Clear

    'empty printspeccombox
    printspeccombobox.Clear

    'Empty Qty_1textbox
    QTY_1textbox = ""


    'Fill Finishingcombobox
    With finishingcombobox
    .AddItem "none"
    .AddItem "Phos"
    .AddItem "Folding"
    End With

    'Printspeccombobox

    printspeccombobox.RowSource = Range('Formula & Lookup'!C6).address


    End Sub

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Combobox indirect lookup

    Hello
    Assuming there is a named range equivalent to the value of cell C6, the following should work:

    Please Login or Register  to view this content.
    Hope this helps.
    DBY

  3. #3
    Registered User
    Join Date
    09-17-2014
    Location
    Telford
    MS-Off Ver
    2010
    Posts
    12

    Re: Combobox indirect lookup

    Thanks DBY that's sorted it.

    Regards Jon

+ 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] INDIRECT within a LOOKUP
    By strik009 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-09-2016, 06:44 AM
  2. Two Way Lookup With Indirect
    By pookyman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-22-2015, 02:12 PM
  3. Indirect with ActiveX Combobox
    By dagindi in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-06-2013, 04:25 AM
  4. Indirect function with ActiveX Combobox
    By George Issa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2013, 02:20 AM
  5. VBA Code For ComboBox With Indirect Options
    By Jub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2013, 07:41 PM
  6. Indirect with ActiveX Combobox (Revisit)
    By dagindi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-12-2011, 01:39 PM
  7. Indirect/Substitute combobox to populate graph
    By PRodgers in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-02-2009, 04:30 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