+ Reply to Thread
Results 1 to 22 of 22

Dynamic dropdown list

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Dynamic dropdown list

    Dear Sir,

    Currently I am facing with dropdownlist problem.I have posted at http://www.excelforum.com/excel-form...alidation.html but could not be able get the desired solution.I think I might get solution at VBA forum hopefully.

    As enclosed in attachment,I want result in F3 and G3.Currently I have shown single data in E3.There will be data in E4,E5,E6...... and so on.The data to be displayed in F3 and G3 should be in dropdown list which I tried using data validation but could not able to do so and omitted lateron.The lookup data are in A,B and C column.

    Rest of the things I have explained in comment in F3 and G3.

    Hope,I could able to achieve the result.

    With Best Rgds,

    Suresh
    Attached Files Attached Files

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Dynamic dropdown list

    Try this:-
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Dynamic dropdown list

    Try the attached.
    No restriction of 256 characters even if the list grows bigger and bigger.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Dynamic dropdown list

    Quote Originally Posted by MickG View Post
    Try this:-
    Dear Sir,

    Thanx for the reply to my post.It works fine F3 and G3 when the cell contains data in E3.But when I put data in E4, the dropdownlist does not display correct list in F4 and G4.Hence be noted that data will be filled by the user in E3,E4,E5,E6,E7,E8 & so on.So,the correct list must be displayed in the corresponding F and G columns rows.

    It should be further to be notified to you that here Matching conditions is currently uptill at A18,B18 and C18 .It might be more than this in my real spreadsheet say more than 2000 as day to day data will be filled.

    Hence I think,other cells are missing something which I think you can correct it.

    Hope for the best.

    With Rgds,
    Suresh

  5. #5
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Dynamic dropdown list

    Quote Originally Posted by jindon View Post
    Try the attached.
    No restriction of 256 characters even if the list grows bigger and bigger.

    Dear Sir,

    Thanx for the reply.Pls find enclosed in attachment,slight alteration with 4 sheets added where result is to be achieved.Kindly state the steps too as how to copy the same code in my original workbook.I could have share that original but since the data is too big,I cannot disclose the data as per my company norms.Hope you understand.

    Pls let me know the steps for this enclosed workbook whose format is exact the same as in my real spreadsheet which contains same matching condition data but >1800 rows & will grow as the user daily goes on feeding the data.

    1.'Details' sheet which has matching conditions data in Column A,C,D (same as that was in above mentioned workbook in A,B & C Column in sample sheet)

    But Results to be obtained in below 4 sheets mentioned a slightly different sheets in different columns instead of F,G and H column which was done in existing sample worksheet.

    2.'Printing'
    3.'Lamination'
    4.'Pouching'
    5.Finish

    Hoping a positive reply.

    With Best Rgds.
    Suresh
    Attached Files Attached Files
    Last edited by paradise2sr; 12-17-2014 at 02:33 AM.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Dynamic dropdown list

    See if this is how you wanted.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Dynamic dropdown list

    Oh!Sir,

    Kindly take A,C and D column data only(Order no,Party name,Job Name) of "Details" sheet as B column contains Date which I do not require to match except A,C and D of 'Details' sheet.Pls see the labels also in the corresponding sheets of

    2.'Printing'
    3.'Lamination'
    4.'Pouching'
    5.Finish

    Also it is not compulsory to be dropdown for Order no. lebelled as it will be feeded manually only the dropdowns of compulsory for labelled 'Party Name' and 'Job Name' is required.

    Also delete F,G,H column of 'Details' sheet as I do not require my result over here.I require only in 4 sheets mentioned.

    Hope this now has been further been cleared and will revise accordingly the workbook formula.
    Thanks once again to you.

    With Best Rgds,
    Suresh
    Last edited by paradise2sr; 12-17-2014 at 03:45 AM.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Dynamic dropdown list

    try this then
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Dynamic dropdown list

    Quote Originally Posted by jindon View Post
    try this then
    Thanx for the reply.This perhaps will work.In 'Printing' of Order No labelled in E3.Can you just revise your formula for making manual typing in E4 and onwards instead of dropdown list (likewise the same for Lamination,Pouching and Finish sheet) whereas others dropdownlist labelled under Party Name and Job Name seems fine at the moment.

    Until then I will copy the formula today in my original workbook and see what is the effect.

    I hope this minor changes will be done by you easily.

    With Best Rgds,
    Suresh
    Last edited by paradise2sr; 12-17-2014 at 07:37 AM.

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Dynamic dropdown list

    If you want to understand how the system works, do a step debug.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Dynamic dropdown list

    Dear Sir,

    I am copying your formula but there is something wrong.I am just checking it.

    I am very much thankful to you.

    With Best Rgds,
    Suresh
    Last edited by paradise2sr; 12-17-2014 at 08:29 AM.

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Dynamic dropdown list

    Delete your email address immediately and I will not give you my email anyway.
    You can ask question on the board only.

  13. #13
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Dynamic dropdown list

    Quote Originally Posted by jindon View Post
    Delete your email address immediately and I will not give you my email anyway.
    You can ask question on the board only.
    I have deleted it.A stepwise instructions to implement will be highly appreciated.

    With Best Rgds,
    Suresh

  14. #14
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Dynamic dropdown list

    Make sure you copy the code everything in;

    1) Standard module, Module1
    2) ThisWorkbook module, Workbook_Open and Workbook_SheetChange
    3) Worksheet module in "detail" sheet, Worksheet_Change and GenerateNames

    If you miss any one of the above, the system won't work.

  15. #15
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Dynamic dropdown list

    Do I have to create any sheet also or not.Becoz I found one hidden sheet named as hiddennames.

    I will marked as solved as soon as I fully get into my original workbook done.

    With Best Rgds,
    Suresh

  16. #16
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Dynamic dropdown list

    Quote Originally Posted by jindon View Post
    Make sure you copy the code everything in;

    1) Standard module, Module1
    2) ThisWorkbook module, Workbook_Open and Workbook_SheetChange
    3) Worksheet module in "detail" sheet, Worksheet_Change and GenerateNames

    If you miss any one of the above, the system won't work.

    Dear Sir,

    I have duly copied all the code but there has been error of Sheet1 which was of 'Details' but still there it exists.I have now enclosed my original workbook where I am actually working.I have other worksheets also which I require is currently I have made hiddenas it does not require.Also in 4 worksheets I have grouped the data as already I have filled up the data.Other unncessary column data I have deleted which is not required.All other formats are as of earlier.

    Hope you can correct the error in this workbook and help me to resolve it.

    With Best Rgds,
    Suresh
    Attached Files Attached Files

  17. #17
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Dynamic dropdown list

    When you ask question and if you are not familiar with vba, you need to show us.

    1) Correct data layouts. (no problem with dummy data as long as data type are the same)
    2) Correct sheet names, Case sensitive.

    Otherwise, you will be asking to fix errors endlessly.
    Attached Files Attached Files

  18. #18
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Dynamic dropdown list

    Quote Originally Posted by jindon View Post
    When you ask question and if you are not familiar with vba, you need to show us.

    1) Correct data layouts. (no problem with dummy data as long as data type are the same)
    2) Correct sheet names, Case sensitive.

    Otherwise, you will be asking to fix errors endlessly.
    Dear Sir,

    I am extremely sorry,if I hurt you.I could not be able to figure out the code where I underlooked.I think now I would able to save time with your consistence help.

    Thanx once again for deliverying your precious time to my queries.

    With Best Rgds,
    Suresh

  19. #19
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Dynamic dropdown list

    Dear Sir,

    I have been using Post #17 till now is much worthy to me and working with fine as on date.

    I require little bit changes in the code that in dropdown in next four consecutive sheet I want to be used PROPER Excel command to be shown.As in the 'Detail'Sheet all the data are in Capital letters.I mean to say that in dropdown list it must not show all the letters in capital letter.Instead a 'PROPER' Excel command is needed to be built in vba.

    Kindly help me in this regard for modifying the code.

    With Best Rgds,
    Suresh

  20. #20
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Dynamic dropdown list

    Replace Sub GenerateNames() in "Detail" sheet module with
    Please Login or Register  to view this content.

  21. #21
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Dynamic dropdown list

    That really was wonderful.Thanx a lot once again to you.

  22. #22
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Dynamic dropdown list

    Dear Sir,

    As on date 27.5.2015,My list is growing more than 4000 and there is hanging problem.The file opens and it takes more than 1/2 hours and sometimes it won't open.
    There is no problem in the code u supplied but since the data grows hanging problems in opening excel file gets continue.

    How can I resolve this issue ?

    If you have any idea to deal with such large data,kindly let me know.

+ 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] Dynamic List for Dropdown box
    By pauldaddyadams in forum Excel General
    Replies: 2
    Last Post: 12-12-2014, 07:29 AM
  2. Dynamic List for Dropdown box
    By pauldaddyadams in forum Excel General
    Replies: 9
    Last Post: 12-03-2014, 04:51 PM
  3. [SOLVED] dynamic dropdown list, VBA
    By Stallnig in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-25-2014, 01:42 AM
  4. Excel 2007 : Dynamic dropdown list
    By Mikme Riley in forum Excel General
    Replies: 2
    Last Post: 05-09-2012, 04:45 PM
  5. Dynamic dropdown list quandry
    By Shocked in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2008, 09:58 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