+ Reply to Thread
Results 1 to 5 of 5

setting a combobox list property to a named range

  1. #1
    Forum Contributor
    Join Date
    03-14-2005
    Posts
    164

    setting a combobox list property to a named range

    Hi all,

    I have 4 queries which are defined as names and one combobox to use them with.

    The combobox will display a different range based on the contents of another combobox.

    On the combobox properties I can type in the name of the range and it works fine. I just cant seem to do this using VBA (I recorded a macro and nothing came out)

    can anyone tell me how I can do this?

    thanks in advance,
    Matt

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Have the list of names for the named ranges available for combobox2 say call them Mylist set the listfill range for combobox2 to Mylist and by using the code below when you select a name in combobox2 combobox1 will have the list required!
    Please Login or Register  to view this content.
    Not all forums are the same - seek and you shall find

  3. #3
    Registered User
    Join Date
    09-04-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: setting a combobox list property to a named range

    Hi forum members...soliciting your help with regard to the same old combobox issues

    problem
    i've a userform with a combobox that contains the dates (example "January 01, 2012") and a submit button. The PDF files which will be in the names as given in the combobox (example "January 01, 2012" ) are stored in a folder in desktop. I'm using Microsoft Excel 2007 version and i need a simple VBA programming for the following

    1) When i select a date in the combobox and click submit, the pdf named in that date format in the folder present in desktop should open. Similarly selecting each date should open only the PDF having the name of that file only.

    Requesting your help in this regard...

    Thanks in advance
    Cool

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: setting a combobox list property to a named range

    Hello cooldude113322, and welcome to the forum.

    Unfortunately you have inadvertently broken one of the forum rules. Please read the following and make the necessary change. Thanks.

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

  5. #5
    Registered User
    Join Date
    09-04-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: setting a combobox list property to a named range

    hi cutter

    sorry for that..i'm new and hence was not fully accustomed with the menu options in the forum...I've started a separate thread for my query and got few replies too...thanks for ur guidance.

    regards,
    cool

+ 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