+ Reply to Thread
Results 1 to 9 of 9

Dynamic range acoording to sheet and Material Name

  1. #1
    Forum Contributor
    Join Date
    09-01-2011
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    126

    Dynamic range acoording to sheet and Material Name

    How can I make a dynamic Range,
    I have each material in a separated sheet, I need when I select the Material (in combobox "cmbName") make the supplier name (in combobox "cmbSupp") goes to its range automatically according to its sheet

    ex. If I select from "cmbName", the value "Leucovorin Calcium", I want "cmbSupp" goes to the range in sheet2 "rngSuppLec"
    and If I select another value like "Paclitaxel", "cmbSupp" goes to the range in sheet3 "rngSuppPac", and so on


    any help will be appreciated

    Thanks...
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-01-2011
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    126

    Re: Dynamic range acoording to sheet and Material Name

    Hello

    Any Help

  3. #3
    Forum Contributor
    Join Date
    01-13-2013
    Location
    Oklahoma
    MS-Off Ver
    Office 2007 / Office 2010
    Posts
    123

    Re: Dynamic range acoording to sheet and Material Name

    This will go in the Userform2 code module:
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-01-2011
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    126

    Re: Dynamic range acoording to sheet and Material Name

    Thanks Yraen

    but If I have alot of materials in my list, It will be more difficult to add its ranges in your code.

    Is it a way to make the code recognize automatically the ranges according to the material selected

    Thanks Again

  5. #5
    Forum Contributor
    Join Date
    01-13-2013
    Location
    Oklahoma
    MS-Off Ver
    Office 2007 / Office 2010
    Posts
    123

    Re: Dynamic range acoording to sheet and Material Name

    I'll get you something up in a few hours that will take care of any amount of items.

  6. #6
    Forum Contributor
    Join Date
    09-01-2011
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    126

    Re: Dynamic range acoording to sheet and Material Name

    waiting you, yraen

    thanks

  7. #7
    Forum Contributor
    Join Date
    01-13-2013
    Location
    Oklahoma
    MS-Off Ver
    Office 2007 / Office 2010
    Posts
    123

    Re: Dynamic range acoording to sheet and Material Name

    Here's the final sheet. I've added a sheet called "Settings". On this sheet you will add each new product into Column A and give it a column all to itself with the product on row 1 of this column. On each product column you can add whatever you want to appear in the drop down when it is selected. Run Userform2 to see it in action.

    Copy of WH.xlsm

  8. #8
    Forum Contributor
    Join Date
    09-01-2011
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    126

    Re: Dynamic range acoording to sheet and Material Name

    Wow, amazing Yraen

    if you don't mind, Can I make that post open, coz sure I'll need your help in that project?

    Thanks ...

  9. #9
    Forum Contributor
    Join Date
    01-13-2013
    Location
    Oklahoma
    MS-Off Ver
    Office 2007 / Office 2010
    Posts
    123

    Re: Dynamic range acoording to sheet and Material Name

    You're welcome. I'm glad it's working for you. I'm not sure what you mean by "Can I make that post open" though. If it's keeping the post open instead of marking it solved, I'd mark it solved and any new problems just open a new post. If for some reason you can't get an answer and I don't see it (I tend to only look at the first couple of pages for posts with 0 replies) you can shoot me a message and see if I can solve the problem.

+ 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