Results 1 to 13 of 13

Create Flat BOM from indented BOM using macro/vba code

Threaded View

  1. #1
    Registered User
    Join Date
    01-02-2016
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    6

    Create Flat BOM from indented BOM using macro/vba code

    Hi,
    I am trying to create a flat Bill of Materials (BOM) from an indented bill of materials.
    The flat BOM of material should contain the list of all purchased parts required within the indented BOM.
    My difficulty is trying to exclude lines on the indented BOM that belong to a purchased item.
    I have attached a sample spreadsheet which contains an indented BOM and i have identified the lines i want to include in column A with explanation in column M.
    When going through the BOM, if the item is MAKE, then the components of the make item should be included if they are purchased.
    Basically my problem is trying to ignore the BOMs associated with purchased parts from the list.

    In the sample spreadsheet, the item on line 9 (12620200) is purchased, however it has a BOM. I do not want to include the any of the parts within the BOM of 12620200 in my flat BOM.
    in this example - i do not want to identify any part in lines 10 to line 30 in my flat BOM.
    line 9 is at level 4 within the BOM - as its purchased - i want to ignore the next set of lines until i reach a part with a level less than or equal to 4 (1, 2, 3 or 4).
    I want to apply this logic to all lines with the indented BOM.
    A purchased item with a BOM can appear at any given level within the BOM.
    I find the best method to understand the BOM structure is to look at one level at a time in sequence
    Filter on levels 1 & 2 to see parent with relevant child, the look at levels 1,2 & 3. Then look at levels 1, 2, 3 & 4 and so on until you are looking at all levels.
    Any help would be appreciated.

    SampleBOM.xlsx
    Last edited by haugheym; 01-02-2016 at 05:39 PM. Reason: added attachment

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. have code to create indented BOM. Need a small mod.
    By PeteABC123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2015, 05:20 PM
  2. [SOLVED] Excel macro to create a flat file?
    By jlang11 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-18-2013, 03:05 PM
  3. Formula or VBA to fill down a hierarchy to create a flat file
    By bmb163 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-28-2012, 09:34 AM
  4. Hierarchy Indented List, Table, Column and Value - need to create uniqueid column
    By mcolli01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 01:09 PM
  5. Create flat file from data download
    By msmithdynamicsgp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2011, 09:54 PM
  6. VBA code for Conditional Loop on flat trades
    By ChristopherC in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-22-2011, 09:14 PM
  7. Create Flat File from Macro
    By jackfsm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2009, 02:15 PM

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