View Poll Results: did you find the question relevant to its heading

Voters
0. This poll is closed
  • yes

    0 0%
  • no

    0 0%
Multiple Choice Poll.
+ Reply to Thread
Results 1 to 2 of 2

exclude options in drop down menu's; insert lines after specific combinations

  1. #1
    Registered User
    Join Date
    08-18-2010
    Location
    Utrecht, Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    1

    exclude options in drop down menu's; insert lines after specific combinations

    Hi guys and girls,

    I'm working on a new excel form and have the input ready, now the layout needs some more attention and i'm confused. I tried to understand the posts on the forum and found some interesting info, but not quite exactly the information i need.

    I've got information in 8 coloms, A to H:

    General Cost category Sub category applicable etc.etc.etc. Total cost
    a, b a, b, c a, b, c, d, e, f yes/no 2 3 1 € 10,00

    The input in row two is dependant from drop down menu's. If for instance you select general a, cost category b and sub cost category d is applicable "yes", then some other drop down menu's should exclude certain drop down options that cannot be used anymore as a result of this choise.

    On the contrary: also after a specific selection of choises in the colums, it might mean that this cost category always comes together with another line with specific criteria, IE.: when in row 10 you make the choice for adding cost in category demolishing costs, excel should immediately insert a new line based on this criteria that selects the adherent cost, for instance the cost of cleaning up after demolishing which is this case is obligatory because it comes together with demolishing costs.

    In this form I think I'd prefer working with drop down menu's but I'm nog quite sure if they work for the kind of result I want to get.
    If you have better solutions, i would appreciate if you share them with me.

    On this forum I already found information about inserting a line after certain criteria, but I guess this code needs adjustments as well.

    Code:
    Sub insertLine() Application.ScreenUpdating = False Set rng = Columns(1) 'change to whatever column number the criteria is in Set c = rng.Find(what:=2009) If Not c Is Nothing Then a = c.Address Do c.Offset(1, 0).EntireRow.Insert Set c = rng.FindNext(c) Loop While c.Address <> a End IfEnd Sub

    Curious what you come up with!

    Thanks already.

    Twan

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: exclude options in drop down menu's; insert lines after specific combinations

    Welcome to the forum.

    Please take a few minutes to read the forum rules, and then edit your post to add CODE tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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